Bug compiling egcs-1.1.2 under AIX 2.4 with IBM xlc

Robert Baruch baruch@Basit.COM
Thu Jul 15 12:08:00 GMT 1999


Hi,

I'm trying to make bootstrap on an RS6000 AIX 2.4 machine using the IBM xlc
compiler.

Apparently the compiler is having a problem with gcc/explow.c lines 889 and
970.  The problem is that fcn is defined as rtx (*) PROTO ((rtx, rtx)),
while in the generated insn-flags.h file, gen_save_stack_function and
gen_restore_stack_function are defined as  rtx (*) PROTO ((void)).  The
compiler doesn't want to assign the latter to the former.

Apparently the void functions are taken straight from
gcc/config/rs6000/rs6000.md, where these functions are defined as having no
arguments.

I think this is a bug that needs to be fixed because explow.c's
emit_stack_save and emit_stack_restore functions call fcn with two
arguments, and rs6000.md says that the stack_function save/restore functions
take no arguments.

I don't know how to fix this bug... any ideas?

Thanks,

--Robert Baruch
Bell Atlantic



More information about the Gcc-bugs mailing list