weening@GANG-OF-FOUR.STANFORD.EDU (Joe Weening) (10/15/88)
GCC 1.30 still fails on a Sun-2 (running Sun OS 4.0) in the same way
that 1.29 did after applying some patches to loop.c that RMS provided.
It compiles stage1 and stage2, but the stage2 compiler crashes in
compiling varargs.c. Also, all of the .o files output from the stage2
compiler differ from those output by the stage1 compiler.
make CC="stage2/gcc -Bstage2/" CFLAGS="-O -g"
stage2/gcc -Bstage2/ -O -g -c -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" gcc.c
stage2/gcc -Bstage2/ -O -g -sun2 -c version.c
stage2/gcc -Bstage2/ -O -g -sun2 -c obstack.c
stage2/gcc -Bstage2/ -O -g -o gccnew gcc.o version.o obstack.o
mv gccnew gcc
stage2/gcc -Bstage2/ -O -g -sun2 -c toplev.c
stage2/gcc -Bstage2/ -O -g -sun2 -c c-parse.tab.c
stage2/gcc -Bstage2/ -O -g -sun2 -c tree.c
stage2/gcc -Bstage2/ -O -g -sun2 -c print-tree.c
stage2/gcc -Bstage2/ -O -g -sun2 -c c-decl.c
stage2/gcc -Bstage2/ -O -g -sun2 -c c-typeck.c
stage2/gcc -Bstage2/ -O -g -sun2 -c c-convert.c
stage2/gcc -Bstage2/ -O -g -sun2 -c stor-layout.c
stage2/gcc -Bstage2/ -O -g -sun2 -c fold-const.c
stage2/gcc -Bstage2/ -O -g -sun2 -c rtl.c
stage2/gcc -Bstage2/ -O -g -c genflags.c
stage2/gcc -Bstage2/ -O -g -o genflags genflags.o rtl.o obstack.o
./genflags md > tmp-insn-flags.h
./move-if-change tmp-insn-flags.h insn-flags.h
stage2/gcc -Bstage2/ -O -g -c gencodes.c
stage2/gcc -Bstage2/ -O -g -o gencodes gencodes.o rtl.o obstack.o
./gencodes md > tmp-insn-codes.h
./move-if-change tmp-insn-codes.h insn-codes.h
stage2/gcc -Bstage2/ -O -g -c genconfig.c
stage2/gcc -Bstage2/ -O -g -o genconfig genconfig.o rtl.o obstack.o
./genconfig md > tmp-insn-config.h
./move-if-change tmp-insn-config.h insn-config.h
stage2/gcc -Bstage2/ -O -g -sun2 -c expr.c
stage2/gcc -Bstage2/ -O -g -sun2 -c stmt.c
stage2/gcc -Bstage2/ -O -g -sun2 -c expmed.c
stage2/gcc -Bstage2/ -O -g -sun2 -c explow.c
stage2/gcc -Bstage2/ -O -g -sun2 -c optabs.c
stage2/gcc -Bstage2/ -O -g -sun2 -c varasm.c
stage2/gcc: Program cc1 got fatal signal 6.
*** Error code 1
make: Fatal error: Command failed for target `varasm.o'
% adb stage2/cc1 core
core file = core -- program ``cc1''
SIGIOT 6: abort
$c
_kill(?)
__DYNAMIC() + 6
_final(0x8b494,0x81a58,0x2,0x1,0x0,0x8b494,0x81a58,0x2,0x1,0xcd11e) + 5ec
_rest_of_compilation(0xcd11e) + 704
_finish_function() + 68
_yyparse() + 636
_compile_file(0xfffe3c) + 604
_main(0x9,0xfffdcc,0xfffdf4) + 658
$r
d0 0x0 _pl
d1 0xf06 _rpc_createerr+0xf06
d2 0x4 _rpc_createerr+0x4
d3 0x2 _rpc_createerr+0x2
d4 0xd _rpc_createerr+0xd
d5 0x81a58 __iob+0x50
d6 0x0 _pl
d7 0x2 _rpc_createerr+0x2
a0 0x873d0 _end+0x1078
a1 0x2e09e _output_constructor+0x42
a2 0xd732c
a3 0x824b8 _recog_operand
a4 0xd7338
a5 0xdda05c __GLOBAL_OFFSET_TABLE_
a6 0xffe4d8
sp 0xffe4c4
pc 0xd99276 _kill+0x6
ps 0x0 _pl
0x0 _pl
final+5d0,10?ia
_final+0x5d0: asll #2,d0
_final+0x5d2: lea _insn_n_operands:l,a5
_final+0x5d8: cmpl a5@(0,d0:l),d3
_final+0x5dc: blts _final+0x5b0
_final+0x5de: movl d4,sp@-
_final+0x5e0: jsr _constrain_operands:l
_final+0x5e6: addqw #4,sp
_final+0x5e8: tstl d0
_final+0x5ea: bnes _final+0x5f2
_final+0x5ec: jsr __DYNAMIC+0xa0:l
_final+0x5f2: lea _cc_status:l,a0
_final+0x5f8: lea _cc_prev_status:l,a1
_final+0x5fe: movl a0@+,a1@+
_final+0x600: movl a0@+,a1@+
_final+0x602: movl a0@+,a1@+
_final+0x604: movl a0@,a1@
_final+0x606: