https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85870
Bug ID: 85870 Summary: [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sudi at gcc dot gnu.org Target Milestone: --- Created attachment 44160 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44160&action=edit Reproducer Hi Please find the attached tar to show the following failure Reading object files: test_1.o test_2.olto1: internal compiler error: in linemap_line_start, at libcpp/line-map.c:794 0x134278f linemap_line_start(line_maps*, unsigned int, unsigned int) /work/trunk/src/gcc/libcpp/line-map.c:794 0x97fea1 lto_location_cache::apply_location_cache() /work/trunk/src/gcc/gcc/lto-streamer-in.c:194 0x5dd948 lto_read_decls /work/trunk/src/gcc/gcc/lto/lto.c:1852 0x5dee7d lto_file_finalize /work/trunk/src/gcc/gcc/lto/lto.c:2121 0x5dee7d lto_create_files_from_ids /work/trunk/src/gcc/gcc/lto/lto.c:2131 0x5dee7d lto_file_read /work/trunk/src/gcc/gcc/lto/lto.c:2172 0x5dee7d read_cgraph_and_symbols /work/trunk/src/gcc/gcc/lto/lto.c:2845 0x5dee7d lto_main() /work/trunk/src/gcc/gcc/lto/lto.c:3362 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. This is failing on (at least) AArch64 and x86 targets. On AArch64, this is failing on gcc-6, gcc-7, gcc-8 and trunk. On x86, this is failing on at least gcc-8 and trunk. The folder contains the following: 1) A README file. 2) Two test files : test_1.i and test_2.i 3) One script to reproduce the failure. To be able to run the script, it needs the following to be defined: 1) TARGET (aarch-none-linux-gnu or x86_64-pc-linux-gnu) 2) GCC_INSTALL (/path/to/install/directory)