This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
m68hc11 crosscompilation fails: m68hc11_encode_section_info haswrong declaration
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Apr 2002 19:35:15 +0200
- Subject: m68hc11 crosscompilation fails: m68hc11_encode_section_info haswrong declaration
Crosscompiling mainline to m68hc11-elf fails with:
gcc -c -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -DHAVE_CONFIG_H -DUSE_GAS -I. -I. -I/mmix/m68hc11-elf/sources/combined/gcc -I/mmix/m68hc11-elf/sources/combined/gcc/. -I/mmix/m68hc11-elf/sources/combined/gcc/config -I/mmix/m68hc11-elf/sources/combined/gcc/../include \
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c -o m68hc11.o
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c: In function `m68hc11_encode_section_info':
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c:1238: number of arguments doesn't match prototype
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11-protos.h:44: prototype declaration
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c: At top level:
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c:2692: warning: function declaration isn't a prototype
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c: In function `m68hc11_check_z_replacement':
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c:4043: warning: `this_insn_uses_ix' might be used uninitialized in this function
/mmix/m68hc11-elf/sources/combined/gcc/config/m68hc11/m68hc11.c:4044: warning: `this_insn_uses_iy' might be used uninitialized in this function
The problem is that m68hc11.c declares:
void
m68hc11_encode_section_info (decl)
tree decl;
but the prototype is:
extern void m68hc11_encode_section_info PARAMS((tree, int));
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj