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: "jason 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 Feb 2010 20:13:35 -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 #5 from jason at gcc dot gnu dot org 2010-02-19 20:13 -------
The problem is that instantiate_decl_rtl isn't being run on the rtl for the
upper bound temporary, because it isn't visible to instantiate_decls. This
happens because even though the temp got added to cfun->local_decls,
expand_used_vars clears it out before instantiate_decls gets a chance to look
at it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42800