c/6815: [3.2 regression] ICE with longjmp if -fprofile-arcs -O is specified
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Fri Nov 22 10:19:00 GMT 2002
Old Synopsis: gcc fails to compile read_pwd.c from openssl-0.9.6d with -fprofile-arcs -O
New Synopsis: [3.2 regression] ICE with longjmp if -fprofile-arcs -O is specified
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Fri Nov 22 09:42:12 2002
State-Changed-Why:
Confirmed.
The bug can be demonstrated with the following code snippet:
----------------------snip here-------------------------
typedef int jmp_buf[12];
static jmp_buf save;
extern void longjmp(jmp_buf, int);
void foo () { longjmp(save,1); }
----------------------snip here-------------------------
Just compile it with "gcc -fprofile-arcs -O -c" to trigger the ICE
(checked on i686-pc-liunx-gnu and mips-sgi-irix6.5).
The code affects the 3.2-branch and mainline as of 20021122.
Previous versions are not affected.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6815
More information about the Gcc-bugs
mailing list