This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/41616] Variables promoted to Gimple registers by aliasing are not getting debug statements.
- From: "aoliva 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 Oct 2009 21:34:15 -0000
- Subject: [Bug debug/41616] Variables promoted to Gimple registers by aliasing are not getting debug statements.
- References: <bug-41616-176@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from aoliva at gcc dot gnu dot org 2009-10-08 21:34 -------
Yup, ADDR_EXPRs don't count as dereferences in debug stmts, but if the variable
doesn't get a memory location, we end up dropping the whole expression. We
have to. Finding another location holding the value of b isn't enough if the
relevant value is the address of b. Since b did not get a memory location, its
address is non-existent.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41616