This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/53927] wrong value for DW_AT_static_link
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Feb 2013 22:20:38 +0000
- Subject: [Bug debug/53927] wrong value for DW_AT_static_link
- Auto-submitted: auto-generated
- References: <bug-53927-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927
--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2013-02-01 22:20:38 UTC ---
Created attachment 29333
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29333
patch to tweak the static chain at -O0
* function.c (instantiate_decls): Process the saved static chain.
(expand_function_start): If not optimizing, save the static chain
onto the stack.
* tree-nested.c (convert_all_function_calls): Always create the static
chain for nested functions if not optimizing.