1.1.1 coredump; known bug?
Dave Glowacki
dglo@SSEC.WISC.EDU
Tue Apr 27 12:43:00 GMT 1999
Compiling the following routine with EGCS 1.1.1 on an AIX 4.3.1 system
results in an eventual coredump (after 'cc1' consumes all available
memory.) Is this something that's fixed in 1.1.2?
/*
* compile with 'gcc -O -c source.c'
* using egcs 2.91.60 on rs6000-ibm-aix4.3.1.0
*
* EGCS doesn't break if '-O' is not used
*/
void
foo(int *g)
{
/* EGCS doesn't break if 'd' isn't a pointer */
static const int *d;
int i;
/* EGCS doesn't break if subtracted value is less than this */
g -= 16385;
/* EGCS doesn't break if the next two lines are changed to
* either 'i = 0; g[i] = d;' or 'g[0] = *d;'
*/
for (i = 0; i < 1; i++)
g[i] = *d;
}
(Sorry, I don't read this mailing list. I'd appreciate it if you would
forward any replies to me...)
More information about the Gcc-bugs
mailing list