This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/46583] [4.6 Regression] -fcompare-debug failure with -O -fno-inline -fipa-cp -fipa-cp-clone
- From: "aoliva at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 Nov 2010 07:51:57 +0000
- Subject: [Bug debug/46583] [4.6 Regression] -fcompare-debug failure with -O -fno-inline -fipa-cp -fipa-cp-clone
- Auto-submitted: auto-generated
- References: <bug-46583-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46583
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |aoliva at gcc dot gnu.org
|gnu.org |
--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2010-11-21 07:51:45 UTC ---
Mine. The order changed because we discarded the typedef decl from the block
scope in the original function. When the time came to clone it, we'd remap the
typedef type after variable a3 of that type, and a3 would not be nonlocalized,
whereas with debug info we retained the typedef, cloned the type first, and a3
would be nonlocalized. The patch I'm going to attach momentarily fixes this by
keeping the typedef around.