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/53927] wrong value for DW_AT_static_link


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.


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