bootstrap broken on linux x86_64

The llvm bootstrap is broken on linux x86_64. I was able to reduce the
problem to the attached .c file that fails to compile with the
following error message:

stage1/cc1 ~/test.c
  yyparse
Attribute ZExt should only apply to Integer type!
void (i64, i64, i8* sext , i8)* @c_finish_if_stmt
Broken module found, compilation aborted!

/home/espindola/test.c:17: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs&gt; for instructions.

Should I add a bug report?

Cheers,
Rafael

test.c (188 Bytes)

Using a little bit of gdb I was able to dump the .ll. It is attached.

Running llvm-as on it produces:

llvm-as: assembly parsed, but does not verify as correct!
Attribute ZExt should only apply to Integer type!
void (i64, i64, i8* sext , i8)* @c_finish_if_stmt
Broken module found, compilation terminated.

Cheers,
Rafael

test.ll (1.08 KB)

Hi Rafael,

Can you file a bugzilla report?

Thanks,

Evan

Can you file a bugzilla report?

Isn't this PR1513?

Ciao,

Duncan.

Hi Rafael,

Can you file a bugzilla report?

Done: 1513 – parameter attributes assigned to wrong argument

Thanks,

Evan

Cheers,
Rafael

> Can you file a bugzilla report?

Isn't this PR1513?

It is.

Ciao,

Duncan.

Cheers,
Rafael

Thanks for the expert reduction Rafael!

-Chris