This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42719] "-fcompare-debug failure" with "-O2 -ftracer"
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2010 15:36:24 -0000
- Subject: [Bug tree-optimization/42719] "-fcompare-debug failure" with "-O2 -ftracer"
- References: <bug-42719-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2010-01-14 15:36 -------
The problem here seems to be that trivially_conflicts_p called
insert_backedge_copies returns 0 for -g0 and 1 for -g in:
<bb 5>:
# i_25 = PHI <i_11(5), a_3(D)(4)>
# DEBUG last => i_25
D.2725_8 = (long unsigned int) i_25;
D.2726_9 = D.2725_8 * 4;
prephitmp.9_10 = pretmp.12_39 + D.2726_9;
i_11 = *prephitmp.9_10;
# DEBUG i => i_11
# DEBUG last => i_25
# DEBUG i => i_11
if (i_11 != -1)
goto <bb 5>;
else
goto <bb 6>;
(for -g0 of course without the # DEBUG lines).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42719