[Bug debug/46724] [4.6 Regression] Wrong debug info: Invalid variable location

aoliva at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 16 05:39:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46724

--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2010-12-16 05:38:44 UTC ---
Considering that we create a decl for the implicit argument that holds the
address of <result>, perhaps the best approach would be to emit debug info for
that artificial decl.  The initial implicit binding of argument variables to
their incoming locations should take care of the debug info for the artificial
parameter throughout the function, and the location of <result> could then be
given in terms of the artificial variable (dwarf calls).  Does that sound
sensible?



More information about the Gcc-bugs mailing list