From: Andrew Stubbs <ams@codesourcery.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] dwarf: Multi-register CFI address support
Date: Mon, 21 Sep 2020 14:51:40 +0100 [thread overview]
Message-ID: <e71cb193-fc3b-5262-bfce-4e6a36d49c94@codesourcery.com> (raw)
In-Reply-To: <4b1263f2-ae04-bf9a-4f2b-3da192c0daed@codesourcery.com>
Ping.
On 03/09/2020 16:29, Andrew Stubbs wrote:
> On 28/08/2020 13:04, Andrew Stubbs wrote:
>> Hi all,
>>
>> This patch introduces DWARF CFI support for architectures that require
>> multiple registers to hold pointers, such as the stack pointer, frame
>> pointer, and return address. The motivating case is the AMD GCN
>> architecture which has 64-bit address pointers, but 32-bit registers.
>>
>> The current implementation permits program variables to span as many
>> registers as they need, but assumes that CFI expressions will only
>> need a single register for each frame value.
>>
>> To be fair, the DWARF standard makes a similar assumption; the
>> engineers working on LLVM and GDB, at AMD, have therefore invented
>> some new DWARF operators that they plan to propose for a future
>> standard. Only one is relevant here, however: DW_OP_LLVM_piece_end.
>> (Unfortunately this clashes with an AArch64 extension, but I think we
>> can cope using an alias -- only GCC dumps will be confusing.)
>>
>> My approach is to change the type representing a DWARF register
>> throughout the CFI code. This permits the register span information to
>> propagate to where it is needed.
>>
>> I've taken advantage of C++ struct copies and operator== to minimize
>> the amount of refactoring required. I'm not sure this meets the GCC
>> guidelines exactly, but if not I can change that once the basic form
>> is agreed. (I also considered an operator= to make assigning single
>> dwreg values transparent, but that hid too many invalid assumptions.)
>>
>> OK to commit? (Although, I'll hold off until AMD release the
>> compatible GDB.)
>
> Minor patch update, following Tom's feedback.
>
> Andrew
next prev parent reply other threads:[~2020-09-21 13:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-28 12:04 Andrew Stubbs
2020-09-02 17:49 ` Tom Tromey
2020-09-02 19:35 ` Andrew Stubbs
2020-09-02 19:55 ` Tom Tromey
2020-09-03 15:29 ` Andrew Stubbs
2020-09-21 13:51 ` Andrew Stubbs [this message]
2020-10-05 10:07 ` Andrew Stubbs
2020-09-22 14:22 ` [committed, OG10] " Andrew Stubbs
2020-10-19 9:36 ` [PATCH] " Jakub Jelinek
2021-06-13 13:27 Hafiz Abid Qadeer
2021-07-22 10:58 ` Hafiz Abid Qadeer
2021-08-24 15:55 ` Hafiz Abid Qadeer
2021-11-02 15:02 ` Hafiz Abid Qadeer
2021-11-09 15:59 ` Jakub Jelinek
2021-11-11 18:12 ` Hafiz Abid Qadeer
2021-12-01 15:49 ` Jakub Jelinek
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=e71cb193-fc3b-5262-bfce-4e6a36d49c94@codesourcery.com \
--to=ams@codesourcery.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).