https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92372

            Bug ID: 92372
           Summary: [10 Regression] ICE in ipa_update_overall_fn_summary
                    at gcc/ipa-fnsummary.c:3671 since r277780
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Starting from the revision I see:

$ cat ice.i
int fn2(int);
int fn3(int);

__attribute__((flatten))
int fn1(int p1)
{
  int a = fn2(p1);
  return fn3(a);
}
__attribute__((flatten))
int fn4(int p1)
{
  int j = fn2(p1);
  return fn3(j);
}

$ gcc ice.i -O2 -c -mandroid
during IPA pass: inline
ice.i:15:1: internal compiler error: Segmentation fault
   15 | }
      | ^
0xdcb7cf crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:326
0x7f058e57114f ???
       
/usr/src/debug/glibc-2.30-1.2.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x679821 ipa_update_overall_fn_summary(cgraph_node*)
        /home/marxin/Programming/gcc/gcc/ipa-fnsummary.c:3671
0x16c947f flatten_function
        /home/marxin/Programming/gcc/gcc/ipa-inline.c:2295
0x16ce246 ipa_inline
        /home/marxin/Programming/gcc/gcc/ipa-inline.c:2603
0x16ce246 execute
        /home/marxin/Programming/gcc/gcc/ipa-inline.c:3024
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to