This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/40012] [4.5 Regression] Revision 146817 generated bad debug info for local variables
- From: "matz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2009 15:57:40 -0000
- Subject: [Bug debug/40012] [4.5 Regression] Revision 146817 generated bad debug info for local variables
- References: <bug-40012-7796@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from matz at gcc dot gnu dot org 2009-06-03 15:57 -------
Bah, simply not expanding those variables (whose SSA partitions were already)
by clearing TREE_USED on them fixes the problem, but makes those variables
have no debug info at all, as the DECLs then have no DECL_RTL_SET anymore.
Which indeed we can't easily use in case one base variable got split into
several SSA partitions: we have several places but only one DECL. This is
no problem in -g -O0 mode, so I can hack around this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40012