Bug 40716 - [4.5 Regression] ICE in purge_dead_edges, at cfgrtl.c:2323
Summary: [4.5 Regression] ICE in purge_dead_edges, at cfgrtl.c:2323
Status: RESOLVED DUPLICATE of bug 39886
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 40717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-10 21:29 UTC by Dmitry Gorbachev
Modified: 2009-07-11 21:55 UTC (History)
6 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorbachev 2009-07-10 21:29:25 UTC
GCC 4.5.0 20090709. (IIRC, there was no such ICE when compiling with 20090702.)

gcc -S -O1 -finline-small-functions -foptimize-sibling-calls -march=i686 bug.c

bug.c:12:1: internal compiler error: in purge_dead_edges, at cfgrtl.c:2323

bug.c:
================================
extern int baz(void), zab(void);

char bar(void)
{
    int i = 1;
    return *(char *)&i;
}

void foo(void)
{
   (bar() ? baz : zab)();
}
================================
Comment 1 Dmitry Gorbachev 2009-07-10 21:30:24 UTC
Maybe a duplicate of PR39886 / PR40364.
Comment 2 Andrew Pinski 2009-07-10 21:43:19 UTC
*** Bug 40717 has been marked as a duplicate of this bug. ***
Comment 3 Dmitry Gorbachev 2009-07-11 21:55:25 UTC

*** This bug has been marked as a duplicate of 39886 ***