This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/6815: [3.2 regression] ICE with longjmp if -fprofile-arcs -O is specified
- From: reichelt at igpm dot rwth-aachen dot de
- To: dtucker at zip dot com dot au, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 22 Nov 2002 17:42:12 -0000
- Subject: Re: c/6815: [3.2 regression] ICE with longjmp if -fprofile-arcs -O is specified
- Reply-to: reichelt at igpm dot rwth-aachen dot de, dtucker at zip dot com dot au, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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