This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/42889] [4.5 Regression] "-fcompare-debug failure (length)" with "-O1 -fgcse"
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2010 10:17:39 -0000
- Subject: [Bug rtl-optimization/42889] [4.5 Regression] "-fcompare-debug failure (length)" with "-O1 -fgcse"
- References: <bug-42889-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from steven at gcc dot gnu dot org 2010-01-28 10:17 -------
FWIW, DF rescanning runs with -g1 and not with -g0 because copy propagation
updates a debug_insn:
LOCAL COPY-PROP: Replacing reg 63 in insn 28 with reg 72
(insn 27 26 28 4 PR42889.c:7 (set (reg/v:SI 63 [ x ])
(reg:SI 72)) 47 {*movsi_1} (expr_list:REG_DEAD (reg:SI 72)
(nil)))
(debug_insn 28 27 29 4 PR42889.c:7 (var_location:SI x (reg:SI 72)) -1 (nil))
This clobbers the DF solution and triggers a re-run of all the DF problems. And
that, in turn, causes the extra DCE run.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42889