This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/70890] [7 regression] r235660 miscompiles stage2 compiler on ia64
- From: "amodra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 May 2016 12:24:22 +0000
- Subject: [Bug rtl-optimization/70890] [7 regression] r235660 miscompiles stage2 compiler on ia64
- Auto-submitted: auto-generated
- References: <bug-70890-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70890
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-05-02
Ever confirmed|0 |1
--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
It looks like my ira.c change has triggered a reload bug. insn 525 is the one
identified in comment #2.
254r.sched1
(insn 518 507 524 44 (set (reg/f:DI 420 [ candidates.515_151 ])
(mem/f/c:DI (reg/f:DI 1381) [310 candidates+0 S8 A64]))
/src/gcc.git/gcc/tree-sra.c:324 6 {movdi_internal}
(nil))
...
(insn 525 509 510 44 (set (reg:DI 120 out0)
(reg/f:DI 420 [ candidates.515_151 ])) /src/gcc.git/gcc/tree-sra.c:324
6 {movdi_internal}
(expr_list:REG_DEAD (reg/f:DI 420 [ candidates.515_151 ])
(nil)))
...
(insn 517 1571 520 160 (set (reg/f:DI 1381)
(symbol_ref:DI ("_ZL10candidates") [flags 0x6] <var_decl
0x7f88d53c25a0 candidates>)) /src/gcc.git/gcc/tree-sra.c:324 6 {movdi_internal}
(nil))
255r.ira, moves insn 517 to just before use
(insn 2078 507 518 44 (set (reg/f:DI 1381)
(symbol_ref:DI ("_ZL10candidates") [flags 0x6] <var_decl
0x7f88d53c25a0 candidates>)) /src/gcc.git/gcc/tree-sra.c:324 6 {movdi_internal}
(expr_list:REG_EQUIV (symbol_ref:DI ("_ZL10candidates") [flags 0x6]
<var_decl 0x7f88d53c25a0 candidates>)
(nil)))
(insn 518 2078 524 44 (set (reg/f:DI 420 [ candidates.515_151 ])
(mem/f/c:DI (reg/f:DI 1381) [310 candidates+0 S8 A64]))
/src/gcc.git/gcc/tree-sra.c:324 6 {movdi_internal}
(expr_list:REG_DEAD (reg/f:DI 1381)
(expr_list:REG_EQUIV (mem/f/c:DI (reg/f:DI 1381) [310 candidates+0 S8
A64])
(nil))))
...
(insn 525 509 510 44 (set (reg:DI 120 out0)
(reg/f:DI 420 [ candidates.515_151 ])) /src/gcc.git/gcc/tree-sra.c:324
6 {movdi_internal}
(expr_list:REG_DEAD (reg/f:DI 420 [ candidates.515_151 ])
(nil)))
256.reload
(note 518 507 2116 44 NOTE_INSN_DELETED)
...
(insn 525 509 510 44 (set (reg:DI 120 out0)
(mem/f/c:DI (reg/f:DI 15 r15 [1381]) [310 candidates+0 S8 A64]))
/src/gcc.git/gcc/tree-sra.c:324 6 {movdi_internal}
(nil))
and insn 2078 is DCEd.