This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/67293] Very large DW_AT_const_value produced
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Aug 2015 14:09:59 +0000
- Subject: [Bug debug/67293] Very large DW_AT_const_value produced
- Auto-submitted: auto-generated
- References: <bug-67293-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67293
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The difference is of course when not optimized out but using only(?)
DW_AT_const_value you can't refer to &a in the debugger:
(gdb) p &a
Can't take address of "a" which isn't an lvalue.