cmc3@BELLCORE.BELLCORE.COM (c.m.chase) (12/31/88)
I believe I have discovered a bug in gcc for the sparc (sun4) machines. This bug was also reported to comp.windows.x by William J. Ray on 22 Dec 1988. The bug was discovered independently by Mr. Ray and myself while attempting to use gcc to compile the X11R3 sample server program. While attempting to compile the file "sunInit.c" in server/ddx/sun, the compiler aborts with the message: gcc: Program cc1 got fatal signal 6. I have walked through the code in sunInit.c in an attempt to narrow down the problem and can reproduce the bug with a 20 line program. I have included the program with this report. VITAL STATISTICS: Machine: Sun 4/110 with Sun OS 4.0 GCC Version: 1.31 tm file: tm-sparc.h .md file: sparc.md ============================== C SOURCE FILE ============================== typedef struct { int a; int b; int c; } Something; Something those_things[2]; typedef struct { Something things[10]; } Big_thing; main() { Big_thing *big_thing_p; int i; for (i = 0; i < 2; i++) big_thing_p->things[i] = those_things[i]; } =========================================================================== compile the above with $ gcc prog.c (no special arguments) If I can be of further help in repairing this bug, please let me know Craig Chase