public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <derodat@adacore.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [PATCH] PR debug/53927: fix value for DW_AT_static_link
Date: Mon, 20 Jul 2015 07:52:00 -0000	[thread overview]
Message-ID: <55ACA5C9.4090608@adacore.com> (raw)

Hello,

This patch fixes the static link description in DWARF to comply with the 
specification. In order to do so, it appends a field to all FRAME 
objects to hold the frame base address (DW_AT_frame_base) so that the 
nested subrograms can directly reference this field.

See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927> for the context 
(in particular why we need this additional field in FRAME objects).

Bootstrapped and regtested successfuly on x86_64-linux. Ok for trunk? 
Thank you in advance!

gcc/ChangeLog:

         PR debug/53927
         * tree-nested.c (finalize_nesting_tree_1): Append a field to
         hold the frame base address.
         * dwarf2out.c (gen_subprogram_die): Generate for
         DW_AT_static_link a location description that computes the value
         of this field.

-- 
Pierre-Marie de Rodat

             reply	other threads:[~2015-07-20  7:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20  7:52 Pierre-Marie de Rodat [this message]
2015-07-27  9:07 ` [PATCH, PING] " Pierre-Marie de Rodat
2015-08-03  8:40   ` [PATCH, PING*2] " Pierre-Marie de Rodat
2015-08-08  9:52     ` [PATCH, PING*3] " Pierre-Marie de Rodat
2015-08-31  7:29       ` [PATCH, PING*4] " Pierre-Marie de Rodat
2015-11-24 16:35         ` Pierre-Marie de Rodat
2015-11-25 17:59           ` Jason Merrill
2015-11-25 21:08             ` Eric Botcazou
2015-11-26 14:23               ` Pierre-Marie de Rodat
2015-11-26 14:56                 ` Eric Botcazou
2015-11-26 15:13                   ` Pierre-Marie de Rodat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55ACA5C9.4090608@adacore.com \
    --to=derodat@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).