This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/42800] [4.5 Regression] VLA DW_AT_upper_bound is no longer emitted
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2010 17:19:24 -0000
- Subject: [Bug debug/42800] [4.5 Regression] VLA DW_AT_upper_bound is no longer emitted
- References: <bug-42800-12292@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2010-01-19 17:19 -------
Yes. This is -O0, so we definitely should ensure that the debug info has the
correct upper bound.
Look at gimplify_type_sizes which for -O0 clears DECL_IGNORED_P on the
temporaries to make sure they are not optimized out. That worked well in 4.4,
but probably doesn't work any longer.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42800