This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug compiling egcs-1.1.2 under AIX 2.4 with IBM xlc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]