🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6195

gcc-2.7.2 DEC-Alpha optimizer bug

#6195
From: Stephan Muehlstrasser
Date: Tue, 09 Jan 1996 00:00
54 lines
1815 bytes
Hi,

with the attached nonsense C-fragment gcc-2.7.2 on DEC Alpha dies
with signal 6 when optimization is turned on.

Output of Session follows (long lines broken up):

Richard$1 uname -a
OSF1 Richard V3.2 214 alpha
Richard$1 gcc -O2 -v -c  foo.i 
Reading specs from /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/specs
gcc version 2.7.2
 /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/cc1 foo.i -quiet -O2
 -version -o /tmp/ccaatlxa.s
GNU C version 2.7.2 compiled by GNU C version 2.7.2.
gcc: Internal compiler error: program cc1 got fatal signal 6

-------------------------------- file foo.i ---------------------------
typedef	struct	_A
{
	unsigned short int	a;	 
	unsigned short int	b;	 
} A, *PA;	 
typedef	struct	_B
{
	short int c;	 
	short int d;	 
} B, *PB;	 
typedef	struct	_C
{
	unsigned char e;	 
} C, *PC;		  
int  x(f)
PC	 f;   		 
{
    PA	g;	 
    short int  h;		 
    if (g->a)
    {
	ICcltdb (&h , f);
    }
    if (!(h  & 0x0010 && g->b) && (!(h  & 0x0020 ) || !(h  & 0x0040 )))
    {
    }
    return 0;
}
-------------------------------- file foo.i ---------------------------

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Stephan Muehlstrasser
InterFace Connection GmbH, 82008 Unterhaching, Leipziger Str. 16
Tel.: +49-89-61049220, Fax: +49-89-6104985
email: sm@ifconnection.de
Technical Details
Message-ID: <m0tZhRM-000DbVC@Freddie.ifconnection.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,40c3ea5f6045c286,start
X-Google-Attributes: gid113d02,public
From: stephan@ifconnection.DE (Stephan Muehlstrasser)
Subject: gcc-2.7.2 DEC-Alpha optimizer bug
Date: 1996/01/09
Message-ID: <m0tZhRM-000DbVC@Freddie.ifconnection.de>
X-Deja-AN: 134573126
distribution: gnu
sender: daemon@cis.ohio-state.edu
organization: GNUs Not Usenet
newsgroups: gnu.gcc.bug