This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
h8300-hms-gcc fails to build
- To: gcc-bugs at gcc dot gnu dot org
- Subject: h8300-hms-gcc fails to build
- From: Kazu Hirata <kazu at hxi dot com>
Hi,
The latest version of h8300-hms-gcc (right out of CVS) fails to build
on i686 with RedHat Linux 6.2.
The build process stops with the following message.
/home/kazu/gnu/gcc/h8300-hms/gcc/xgcc -B/home/kazu/gnu/gcc/h8300-hms/gcc/ -nostdinc -B/home/kazu/gnu/gcc/h8300-hms/h8300-hms/newlib/ -isystem /home/kazu/gnu/gcc/h8300-hms/h8300-hms/newlib/targ-include -isystem /home/kazu/gnu/gcc/gcc/newlib/libc/include -B/usr/local/h8300-hms/bin/ -B/usr/local/h8300-hms/lib/ -isystem /usr/local/h8300-hms/include -DCROSS_COMPILE -DIN_GCC `echo -g -O2 -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -isystem ./include -c ../../gcc/gcc/libgcc1-test.c
../../gcc/gcc/libgcc1-test.c:8: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:9: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:18: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:85: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:94: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:104: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:105: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:106: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:116: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:117: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:118: warning: function declaration isn't a prototype
../../gcc/gcc/libgcc1-test.c:119: warning: function declaration isn't a prototype
/tmp/ccTg2I7h.s: Assembler messages:
/tmp/ccTg2I7h.s:769: Error: Rest of line ignored. First ignored character is `*'.
/tmp/ccTg2I7h.s:790: Error: Rest of line ignored. First ignored character is `*'.
/tmp/ccTg2I7h.s:795: Error: Rest of line ignored. First ignored character is `*'.
/tmp/ccTg2I7h.s:816: Error: Rest of line ignored. First ignored character is `*'.
/tmp/ccTg2I7h.s:821: Error: Rest of line ignored. First ignored character is `*'.
/tmp/ccTg2I7h.s:842: Error: Rest of line ignored. First ignored character is `*'.
make[1]: *** [libgcc1-test.o] Error 1
make[1]: Leaving directory `/home/kazu/gnu/gcc/h8300-hms/gcc'
make: *** [all-gcc] Error 2
Command exited with non-zero status 2
The core of the problem seems to be compiling the following piece of code.
extern void start() __asm__("start");
void start() {}
With the same options as libgcc1-test.c, this gets compiled to:
; GCC For the Hitachi H8/300
; By Hitachi America Ltd and Cygnus Support
; release F-1
; -O2
.file "ttt.c"
.section .text
.align 1
.def _*start
.val start
.scl 2
.type 041
.endef
.global start
start:
.def .bf
.val .
.scl 101
.line 3
.endef
push r6
mov.w r7,r6
.def .ef
.val .
.scl 101
.line 1
.endef
pop r6
rts
.def _*start
.val .
.scl -1
.endef
.end
I don't know where '*' in _*start coms from.
Thanks,
Kazu Hirata