🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2102

Bug in gcc-cc1

#2102
From: c.m.chase
Date: Fri, 30 Dec 1988 19:18
56 lines
1733 bytes
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
Technical Details
Message-ID: <8812302334.AA01873@rutgers.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!BELLCORE.BELLCORE.COM!nvuxr!cmc3

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!BELLCORE.BELLCORE.COM!nvuxr!cmc3
From: nvuxr!cmc3@BELLCORE.BELLCORE.COM (c.m.chase)
Newsgroups: gnu.gcc.bug
Subject: Bug in gcc-cc1
Message-ID: <8812302334.AA01873@rutgers.edu>
Date: 30 Dec 88 19:18:00 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 56