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

            Bug ID: 92242
           Summary: [10 regression] LTO ICE in ipa_get_cs_argument_count
                    ipa-prop.h:598
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

r277460 PASS
r277486 FAIL

I'll try creduce it / proprietary codebase, 50+ files LTO linked into .so dylib

Fedora 31 x86_64

/home/dimhen/src/gcc_current/configure --prefix=/usr/local/gcc_current
--enable-checking=yes,df,fold,rtl,extra --enable-languages=c,c++,lto
--disable-multilib --enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-gnu-indirect-function --enable-cet --with-tune=native

make dylib [LTO with high optimization]

during IPA pass: inline
lto1: internal compiler error: Segmentation fault
0xdd4bdf crash_signal
        /home/dimhen/src/gcc_current/gcc/toplev.c:326
0x64e28d ipa_get_cs_argument_count
        /home/dimhen/src/gcc_current/gcc/ipa-prop.h:598
0x64e28d ipa_merge_fn_summary_after_inlining(cgraph_edge*)
        /home/dimhen/src/gcc_current/gcc/ipa-fnsummary.c:3318
0x16f66db inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*,
int*, bool, bool*)
        /home/dimhen/src/gcc_current/gcc/ipa-inline-transform.c:484
0x16f0682 inline_small_functions
        /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2151
0x16f0682 ipa_inline
        /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2615
0x16f0682 execute
        /home/dimhen/src/gcc_current/gcc/ipa-inline.c:3023
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.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.

Reply via email to