taylor@THINK.COM (05/16/89)
I recently ftp'ed gcc-1.35 from prep. I'm trying to use it as a cross compiler to generate code for a Nat'l Semi 32K processor. I've tried two configurations. One is: aux-output.c -> config/out-ns32k.c config.h -> config/xm-sunos4.h md -> config/ns32k.md tm.h -> config/tm-sequent.h The other has aux-output.c, config.h, and md the same. And has tm.h as a symbolic link to config/tm-ns32k-gas.h which is, currently, just: ------------------- #include "tm-ns32k.h" #define DBX_DEBUGGING_INFO #define TARGET_DEFAULT 0 ------------------- After compiling the compiler on a Sun4 running SunOS 4.0.1, I decided to try compiling some files. Wanting something simple, I decided to try compiling gnulib.c and see if it would correctly compile into calls to the functions found in gnulib.c. I also decided to try compiling gnulib.c There are two functions in gnulib.c -- _ashrsi3 and _ashlsi3 -- and two in gnulib2.c -- _subdi3 and _negdi2 -- that cause gcc to die with: Program cc1 got fatal signal 6 as the following transcript shows. Note -- this transcript is for the sequent configuration, with optimization. It also happens with the other configuration. And it happens without optimization. taylor@odin 7: foreach i (_ashrsi3 _ashlsi3) ? bin/gcc -v -Bbin/sequent/ -S -O -I. -I./config -DL$i gnulib.c ? echo ====================== ? end gcc version 1.35 bin/sequent/cpp -v -DL_ashrsi3 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib.c /tmp/cca16921.cpp GNU CPP version 1.35 bin/sequent/cc1 /tmp/cca16921.cpp -quiet -dumpbase gnulib.c -O -version -o gnulib.s GNU C version 1.35 (32000, Sequent syntax) compiled by CC. bin/gcc: Program cc1 got fatal signal 6. ====================== gcc version 1.35 bin/sequent/cpp -v -DL_ashlsi3 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib.c /tmp/cca16924.cpp GNU CPP version 1.35 bin/sequent/cc1 /tmp/cca16924.cpp -quiet -dumpbase gnulib.c -O -version -o gnulib.s GNU C version 1.35 (32000, Sequent syntax) compiled by CC. bin/gcc: Program cc1 got fatal signal 6. ====================== taylor@odin 8: foreach i (_subdi3 _negdi2) ? bin/gcc -v -Bbin/sequent/ -S -O -I. -I./config -DL$i gnulib2.c ? echo ====================== ? end gcc version 1.35 bin/sequent/cpp -v -DL_subdi3 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib2.c /tmp/cca16927.cpp GNU CPP version 1.35 bin/sequent/cc1 /tmp/cca16927.cpp -quiet -dumpbase gnulib2.c -O -version -o gnulib2.s GNU C version 1.35 (32000, Sequent syntax) compiled by CC. bin/gcc: Program cc1 got fatal signal 6. ====================== gcc version 1.35 bin/sequent/cpp -v -DL_negdi2 -I. -I./config -undef -D__GNUC__ -Dns32000 -Dunix -D__ns32000__ -D__unix__ -D__OPTIMIZE__ gnulib2.c /tmp/cca16930.cpp GNU CPP version 1.35 bin/sequent/cc1 /tmp/cca16930.cpp -quiet -dumpbase gnulib2.c -O -version -o gnulib2.s GNU C version 1.35 (32000, Sequent syntax) compiled by CC. bin/gcc: Program cc1 got fatal signal 6. ====================== taylor@odin 9: