https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87899
Bug ID: 87899 Summary: [9 regression]r264897 cause mis-compiled native arm-linux-gnueabihf toolchain Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: renlin at gcc dot gnu.org Target Milestone: --- since r264897, native arm-linux-gnueabihf toolchain has been mis-compiled. Somehow, it survives boostrap. It ICEs when compiling a lot of test cases. They fail with similar message. For example: ./gcc/cc1 ~/gcc/./gcc/testsuite/gcc.c-torture/execute/pr36034-1.c -O3 test main Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes> <targetclone> <free-fnsummary> <increase_alignment>Streaming LTO <whole-program> <profile_estimate> <icf> <devirt> <cp> <fnsummary> <inline> <pure-const> <free-fnsummary> <static-var> <single-use> <comdats>Assembling functions: <materialize-all-clones> testduring GIMPLE pass: ldist gcc/./gcc/testsuite/gcc.c-torture/execute/pr36034-1.c: In function ‘test’: gcc/./gcc/testsuite/gcc.c-torture/execute/pr36034-1.c:9:1: internal compiler error: Segmentation fault 9 | test (void) | ^~~~ 0x5c3a37 crash_signal ../../gcc/gcc/toplev.c:325 0x63ef6b inchash::hash::add(void const*, unsigned int) ../../gcc/gcc/inchash.h:100 0x63ef6b inchash::hash::add_ptr(void const*) ../../gcc/gcc/inchash.h:94 0x63ef6b ddr_hasher::hash(data_dependence_relation const*) ../../gcc/gcc/tree-loop-distribution.c:143 0x63ef6b hash_table<ddr_hasher, xcallocator>::find_slot(data_dependence_relation* const&, insert_option) ../../gcc/gcc/hash-table.h:414 0x63ef6b get_data_dependence ../../gcc/gcc/tree-loop-distribution.c:1184 0x63f2bd data_dep_in_cycle_p ../../gcc/gcc/tree-loop-distribution.c:1210 0x63f2bd update_type_for_merge ../../gcc/gcc/tree-loop-distribution.c:1255 0x64064b build_rdg_partition_for_vertex ../../gcc/gcc/tree-loop-distribution.c:1302 0x64064b rdg_build_partitions ../../gcc/gcc/tree-loop-distribution.c:1754 0x64064b distribute_loop ../../gcc/gcc/tree-loop-distribution.c:2795 0x642299 execute ../../gcc/gcc/tree-loop-distribution.c:3133 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.