This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-current: global.c:401: Internal compiler error in function global_alloc


Hi,

the following program, when compiled with egcs-current -O2, reports

	global.c:401: Internal compiler error in function global_alloc

This seems to depend on compiler-internal knowledge for __sigsetjmp and
strlen(); when I rename these functions the error does not occur any more.

# gcc -O2 -c sb.c   
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.40/specs
gcc version egcs-2.91.40 19980612 (gcc2 ss-980502 experimental)
/usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.40/cc1 /tmp/cckInIN2.i -quiet -dumpbase sb.c -O2 -version -o /tmp/cckInIN2.s
GNU C version egcs-2.91.40 19980612 (gcc2 ss-980502 experimental) (i586-pc-linux-gnu) compiled by GNU C version egcs-2.91.33 19980530 (gcc2 ss-980502 experimental).
global.c:401: Internal compiler error in function global_alloc
#####################
typedef struct {} jmp_buf;
jmp_buf alarmjmp;
int smtpwrite(char *strbuf)
{
	int len = strlen(strbuf) + 2;
	if (__sigsetjmp ( alarmjmp )) {}
	if (len) { return 75 ; }
	barfoo(strbuf);
}


-- 
Matthias Urlichs
noris network GmbH


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]