This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

Re: c/6815: [3.2 regression] ICE with longjmp if -fprofile-arcs -O is specified


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


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