🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Stephan Muehlstrasser Tue, 09 Jan 1996 00:00
gcc-2.7.2 DEC-Alpha optimizer bug
#6195
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads