This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]