https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69123
Bug ID: 69123 Summary: [6 Regression] --with-build-config='bootstrap-O3 bootstrap-debug' miscompiled stage 2 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- On x86-64, --with-build-config='bootstrap-O3 bootstrap-debug' miscompiled stage 2 into an infinite loop: (gdb) bt #0 0x0000000000e01141 in get_ref_base_and_extent(tree_node*, long*, long*, long*, bool*) () #1 0x0000000000ebb061 in ao_ref_base(ao_ref*) () #2 0x00000000008db7b2 in ao_ref_from_mem(ao_ref*, rtx_def const*) () #3 0x00000000008dbd2d in rtx_refs_may_alias_p(rtx_def const*, rtx_def const*, bool) () #4 0x00000000008e001a in true_dependence_1(rtx_def const*, machine_mode, rtx_def*, rtx_def const*, rtx_def*, bool) () #5 0x0000000001094a6d in drop_overlapping_mem_locs(variable**, overlapping_mems*) () #6 0x0000000001094bd9 in clobber_overlapping_mems(dataflow_set*, rtx_def*) () #7 0x0000000001099bf3 in val_store(dataflow_set*, rtx_def*, rtx_def*, rtx_insn*, bool) () #8 0x000000000109e086 in compute_bb_dataflow(basic_block_def*) [clone .isra.135] () #9 0x000000000109f4ca in vt_find_locations() () #10 0x00000000010a15e0 in variable_tracking_main_1() () #11 0x00000000010a178c in (anonymous namespace)::pass_variable_tracking::execute(function*) () #12 0x0000000000cb7d74 in execute_one_pass(opt_pass*) () #13 0x0000000000cb8a55 in execute_pass_list_1(opt_pass*) () #14 0x0000000000cb8cea in execute_pass_list(function*, opt_pass*) () #15 0x0000000000964254 in cgraph_node::expand() () ---Type <return> to continue, or q <return> to quit--- #16 0x0000000000965c07 in symbol_table::compile() [clone .part.49] () #17 0x0000000000968293 in symbol_table::finalize_compilation_unit() () #18 0x0000000000dad023 in compile_file() () #19 0x00000000005d2186 in toplev::main(int, char**) () #20 0x00000000005d3db7 in main () (gdb)