[Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Dec 14 13:13:00 GMT 2009


static int
f0 (char *s0, char *s1)
{
  return __builtin_strlen (s0) > __builtin_strlen (s1);
}

int
f1 (char *s, int j)
{
  if (f0 (s, ""))
    return 1;
  return j;
}

void
f2 (char *s)
{
  f1 (s, 0);
}

fails with -O1 -fipa-cp -flto:

> ./cc1 -quiet -O1 -fipa-cp -flto t.i
t.i:23:1: internal compiler error: in ipa_write_node_info, at ipa-prop.c:2023
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE in ipa_write_node_info, at ipa-prop.c:2023
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, lto
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366



More information about the Gcc-bugs mailing list