This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/64485] ICE at -Os and above on x86_64-linux-gnu in compute_inlined_call_time, at ipa-inline.c:550
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Jan 2015 21:52:28 +0000
- Subject: [Bug ipa/64485] ICE at -Os and above on x86_64-linux-gnu in compute_inlined_call_time, at ipa-inline.c:550
- Auto-submitted: auto-generated
- References: <bug-64485-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64485
--- Comment #1 from Zhendong Su <su at cs dot ucdavis.edu> ---
The following (somewhat simpler) test case triggers the same ICE:
---------------------
int a, b, c;
int
fn1 ()
{
return a || b;
}
static void
fn2 (int p)
{
if (p)
c = fn1 ();
for (;;)
;
}
void
fn3 ()
{
fn2 (1);
}