gcc
  m68hc11
    gcc/xgcc
  hello.c
  -dletters
  files
  files (gcc34 or gcc4)
  strict-aliasing

Last Update: "2006/11/14 01:04:19 makoto"

m68hc11

http://gcc.gnu.org/ml/gcc-testresults/2006-03/msg00567.html

gcc/xgcc

142 16:42 tar zxf $DISTFILES/gcc-3.3.6.tar.bz2 146 16:50 mkdir gcc-3.3.6-m68hc11 147 16:50 cd gcc-3.3.6-m68hc11 148 16:51 ../gcc-3.3.6/configure --target=m68hc11-unknown-none 149 16:52 time make In file included from ../../gcc-3.3.6/gcc/expr.c:39: ../../gcc-3.3.6/gcc/recog.h:227: warning: type of bit-field 'mode' is a GCC extension ../../gcc-3.3.6/gcc/expr.c:11353: internal compiler error: in dwarf2out_finish, at dwarf2out.c:14117 Please submit a full bug report,
Use gmake
/export/local-src/gcc-3.4.6-m68hc11/gcc/xgcc -B/export/local-src/gcc-3.4.6-m68hc11/gcc/ -B/usr/local/m68hc11-unknown-none/bin/ -B/usr/local/m68hc11-unknown-none/lib/ -isystem /usr/local/m68hc11-unknown-none/include -isystem /usr/local/m68hc11-unknown-none/sys-include -Os -mrelax -DUSE_GAS -DIN_GCC -Dinhibit_libc -g -DIN_LIBGCC2 -I. -I. -I../../gcc-3.4.6/gcc -I../../gcc-3.4.6/gcc/. -I../../gcc-3.4.6/gcc/../include -I../intl -DFINE_GRAINED_LIBRARIES -DL_unpack_sf -c fp-bit.c -o libgcc/./_unpack_sf.o fp-bit.c: In function `__unpack_f': fp-bit.c:587: error: unrecognizable insn: (insn 248 81 82 10 fp-bit.c:547 (set (reg:HI 1 d [69]) (mem/s:HI (plus:HI (mem/f:HI (plus:HI (reg/f:HI 9 *_.frame) (const_int 9 [0x9])) [8 dst+0 S2 A16]) (const_int 2 [0x2])) [3 <variable>.normal_exp+0 S2 A8])) -1 (nil) (nil)) fp-bit.c:587: internal compiler error: in extract_insn, at recog.c:2083 Please submit a full bug report, ... gmake[2]: *** [libgcc/./_unpack_sf.o] Error 1
Is this related ? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19960

The problem is: do not step into stage 3 or 4 for cross compiler. It is just a problem of build procedure, not compiler itself.

The procedure of gcc build is:

  • stage 1 : initial compiler, compiled by native cc
  • stage 2 : the compiler made by stage 1
  • stage 3 : the compiler made by stage 2
If the compiler is for cross environment, stage 2 (and further) does not make sense.
/export/local-src/gcc-4.1.1-m68hc11/./gcc/xgcc -B/export/local-src/gcc-4.1.1-m68hc11/./gcc/ -B/usr/local/m68hc11-unknown-none/bin/ -B/usr/local/m68hc11-unknown-none/lib/ -isystem /usr/local/m68hc11-unknown-none/include -isystem /usr/local/m68hc11-unknown-none/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.1.1/libssp -I. -Wall -O2 -g -O2 -MT ssp.lo -MD -MP -MF .deps/ssp.Tpo -c ../../../gcc-4.1.1/libssp/ssp.c -o ssp.o ../../../gcc-4.1.1/libssp/ssp.c: In function '__guard_setup': ../../../gcc-4.1.1/libssp/ssp.c:70: warning: implicit declaration of function 'open' ../../../gcc-4.1.1/libssp/ssp.c:70: error: 'O_RDONLY' undeclared (first use in this function) ../../../gcc-4.1.1/libssp/ssp.c:70: error: (Each undeclared identifier is reported only once
This is again, the issue of cross-compile stage 2 problem. And it is NOT a real problem.
Last Update: Sat, 07 Jun 2014 22:16:17 GMT 1.66 2008/03/08