This is the mail archive of the gcc-bugs@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]

[Bug ipa/64485] ICE at -Os and above on x86_64-linux-gnu in compute_inlined_call_time, at ipa-inline.c:550


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);
}


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