This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug compiling egcs-1.1.2 under AIX 2.4 with IBM xlc
- To: "Mark Glemboski" <markg at ans dot net>, <egcs-bugs at egcs dot cygnus dot com>
- Subject: Bug compiling egcs-1.1.2 under AIX 2.4 with IBM xlc
- From: "Robert Baruch" <baruch at Basit dot COM>
- Date: Thu, 15 Jul 1999 15:02:56 -0400
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