Subject: cc1 coredumps
To: None <port-sparc@NetBSD.ORG>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
List: port-sparc
Date: 01/20/1997 10:49:44
I just had the compiler coredump on me.  I've been developing a program
on NetBSD/sun3 at home, and when I brought it over to work to build it
on NetBSD/sparc, I got

gcc: Internal compiler error: program cc1 got fatal signal 11

I ran it with -save-temps to grab the .i file, and I find that with
bug.i as enclosed below,

/usr/libexec/cc1 bug.i -quiet -dumpbase format.c -g -W -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -o bug.s

coredumps.  Oddly, it appears to have something to do with the
findloop() function, last in bug.i - removing that makes the coredump
stop.

This is with the compiler built from 1.2 sources; I do have a few
patches applied to it.  While none of them look to me as though they
may be related, I'd be glad if someone else with 1.2 on a SPARC could
try this and see whether it's just me or not.  (The patches are to
provide -Wmain-type and -Wno-main-type and to remove the "comparison
between signed and unsigned" noise.)

If it is just me, or perhaps even if it isn't, I may get around to
building the compiler with -g so I can do something useful with the
resulting coredump....

Here is bug.i.gz.btoa.  bug.i has md5 checksum
30fef314dbbd4d919630770bcf9a5013.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

xbtoa Begin
+,^C)glg\Q!X%OHCQmL2P+OVH!pe?^Uj:VaYUA*Pp/WZ4ltp&%Ft:[_Ei)qQ#t`A1AV/EVSG9j+GN1
u>"=VM?qrssj90tkiBJ^X`%?R3e9D31-2+?<78=giML-K$gU3W/l8`$<AV.e>ZHEhl&JEnG'K`<(hk
@+',?FCA%(JeNH\7;+!S8>Nps";#oBp4dbT>i`>l/R&<`a6?I'(-)Dfie_TF>5eqlNq$4R(U/c2ZlY
lr!f`qBU^Vg=]B;]7%?1%f;"bd<_^c+GF,e^UJL5E6'`aa4C7P?C69bl>IKI]G?72,!6`*G=]^Js;t
?17<OnObMPs^^"`Fu%La'-cS@HZ!Bf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