This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/44832] [4.6 Regression] -fcompare-debug failure for C++ i386.c
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2010 15:54:39 -0000
- Subject: [Bug debug/44832] [4.6 Regression] -fcompare-debug failure for C++ i386.c
- References: <bug-44832-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #44 from amylaar at gcc dot gnu dot org 2010-07-08 15:54 -------
(In reply to comment #43)
> Now, I see that in the non-debug case we are copying the LABEL_DECL while
> copying statements while in the debug case we are copying it while
> copying the block tree. We have to preserve used labels in
> the block tree it's just not trivial to do unless we resort to setting
> TREE_USED.
>
> Which would be the following, which also fixes the failure.
I have done a --enable-build-with-cxx bootstrap of trunk trevision 161952
with this patch applied (with tabs for leading whitespace in the comment).
The bootstrap finished successfully, and the regression test results
look reasonable, although I still have to generate baseline results to
compare this to.
I have submitted PR other/44874 to track the shortcomings of our debugging
dumps for finding DECL_UID ordering issues.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44832