This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
1.1.1 coredump; known bug?
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: 1.1.1 coredump; known bug?
- From: Dave Glowacki <dglo at SSEC dot WISC dot EDU>
- Date: Tue, 27 Apr 1999 14:42:57 -0500
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...)