public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jiong Wang <jiong.wang@foss.arm.com>
To: Joseph Myers <joseph@codesourcery.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>,
	"Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>,
	James Greenhalgh <james.greenhalgh@arm.com>,
	Ian Lance Taylor <iant@google.com>
Subject: Re: [7/9][AArch64, libgcc] Let AArch64 use customized unwinder file
Date: Mon, 14 Nov 2016 13:55:00 -0000	[thread overview]
Message-ID: <46b25fe0-30bc-1ebc-5e8c-1b218b0d4002@foss.arm.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1611112211430.32183@digraph.polyomino.org.uk>

On 11/11/16 22:12, Joseph Myers wrote:
> On Fri, 11 Nov 2016, Jiong Wang wrote:
>
>> There are two ways of introducing these AArch64 support:
>>    * Introducing a few target macros so we can customize functions like
>>      uw_init_context, uw_install_context etc.
>>    * Use target private unwind-dw2 implementation, i.e duplicate the generic
>>      unwind-dw2.c into target config directory and use it instead of generic
>> one.
>>      This is current used by IA64 and CR16 is using.
>>
>> I am not sure which approach is the convention in libgcc, Ian, any comments on
>> this?
> Although as you note duplication has been used before, I think it should
> be strongly discouraged; duplicated files are unlikely to be kept up to
> date with relevant changes to the main file.
>
>
> Hi Joseph,

   The changes AArch64 needs to do on top of the generic unwind-dw2.c is at:

      https://gcc.gnu.org/ml/gcc-patches/2016-11/msg01167.html

   If I don't duplicate unwind-dw2.c, then I need to guard those changes with
something like __aarch64__ or introduce several target macros.  It looks to me
only the hunk that supports AArch64 DWARF operations worth a target macro,
something like MD_DW_OP_HANDLER, for the other changes they are quite scattered,
for example the field extension on "struct _Unwind_Context" and the relax of
assertion on uw_install_context_1.

   Any comments on this?

   Thanks.

Regards,
Jiong


  reply	other threads:[~2016-11-14 13:55 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c9da17a6-c3de-4466-c023-4e4ddbe38efb@foss.arm.com>
2016-11-11 18:22 ` [1/9][RFC][DWARF] Reserve three DW_OP numbers in vendor extension space Jiong Wang
2016-11-11 18:33   ` [2/9] Encoding support for AArch64 DWARF operations Jiong Wang
2016-11-16 17:51     ` Jason Merrill
2016-11-16 20:39       ` Jason Merrill
     [not found]   ` <64dd1b38-ff0a-5df0-1d3c-2fbf083e2697@foss.arm.com>
     [not found]     ` <df0da0e0-df8d-50ff-4f7e-428948817b4b@foss.arm.com>
2016-11-11 18:34       ` [4/9][AArch64] Return address protection on AArch64 Jiong Wang
     [not found]       ` <532363d6-0b33-491f-264d-9cd627713bf6@foss.arm.com>
2016-11-11 18:35         ` [5/9][AArch64] Generate dwarf information for -msign-return-address Jiong Wang
     [not found]         ` <c46bb16a-4133-5aac-646f-cfd3f204d355@foss.arm.com>
2016-11-11 18:35           ` [6/9][AArch64] Add builtins support for pac/aut/xpac Jiong Wang
     [not found]           ` <172bd740-755c-5267-3a9d-692c84d25395@foss.arm.com>
2016-11-11 18:36             ` [7/9][AArch64, libgcc] Let AArch64 use customized unwinder file Jiong Wang
2016-11-11 22:12               ` Joseph Myers
2016-11-14 13:55                 ` Jiong Wang [this message]
     [not found]             ` <9333e644-4daa-38e3-690e-2ea3473b0f29@foss.arm.com>
2016-11-11 18:36               ` [8/9][AArch64, libgcc] Runtime support for AArch64 DWARF operations Jiong Wang
     [not found]               ` <1ae89b2b-9819-12f8-5341-776c3b02e5b3@foss.arm.com>
2016-11-11 18:37                 ` [9/9][RFC][AArch64] Accelerate -fstack-protector through pointer authentication extension Jiong Wang
2017-01-18 17:10                   ` [AArch64] " Jiong Wang
2017-02-07 16:06                     ` Ping [AArch64] Accelerate -fstack-protector Jiong Wang
2017-02-15 16:06                     ` [AArch64] Accelerate -fstack-protector through pointer authentication extension Richard Earnshaw (lists)
2017-02-15 17:30                       ` Jiong Wang
2016-11-11 18:34     ` [3/9][AArch64] Add commandline support for -march=armv8.3-a Jiong Wang
2016-11-11 19:39   ` [1/9][RFC][DWARF] Reserve three DW_OP numbers in vendor extension space Jakub Jelinek
2016-11-15 16:00     ` Jiong Wang
2016-11-15 16:18       ` Jakub Jelinek
2016-11-15 16:48         ` Jiong Wang
2016-11-15 19:25           ` Richard Earnshaw (lists)
2016-11-16 10:00             ` Jiong Wang
2016-11-16 13:55               ` Mark Wielaard
2016-11-16 14:02                 ` Jakub Jelinek
2016-11-30 11:15                   ` Jiong Wang
2016-11-30 18:25                     ` Yao Qi
2016-12-12 13:40                     ` [Ping~][1/9][RFC][DWARF] " Jiong Wang
2016-12-19 14:07                       ` [Ping^2][1/9][RFC][DWARF] " Jiong Wang
2016-12-28 18:25                         ` [Ping^3][1/9][RFC][DWARF] " Jiong Wang
2016-12-28 21:14                     ` [1/9][RFC][DWARF] " Cary Coutant
2017-01-03  9:32                       ` Jiong Wang
2016-11-30 21:44                   ` Cary Coutant
2016-12-01 10:42                     ` Richard Earnshaw (lists)
2016-12-01 11:09                       ` Jiong Wang
2016-11-15 16:51         ` Jiong Wang
2016-12-28 19:54     ` Cary Coutant
     [not found] ` <4cf21d03-0a88-c6fa-df37-59ec4edf1d89@foss.arm.com>
     [not found]   ` <ac547390-abfc-3d6a-f10b-dbb9e4bad5b2@foss.arm.com>
     [not found]     ` <f97bf031-e589-5879-17f6-60ed02468561@foss.arm.com>
2017-01-06 11:33       ` [Ping~][AArch64] Add commandline support for -march=armv8.3-a Jiong Wang
2017-01-10 17:00         ` James Greenhalgh
     [not found]     ` <ae7c1f2a-06e4-55d1-d3be-e43ae7ec76df@foss.arm.com>
     [not found]       ` <6f8e65e0-643d-d0b0-26ad-4a20c3daf421@foss.arm.com>
2017-01-06 11:47         ` [1/5][AArch64] Return address protection on AArch64 Jiong Wang
2017-01-13 16:05           ` James Greenhalgh
2017-01-13 17:05             ` Jiong Wang
2017-01-16 11:25               ` James Greenhalgh
2017-01-20  4:15           ` Andrew Pinski
2017-01-20 11:39             ` Jiong Wang
2017-01-20 13:15               ` Jiong Wang
2017-01-20 16:24                 ` Richard Earnshaw (lists)
2017-01-20 18:30                   ` Jiong Wang
2017-01-20 18:49                     ` Jiong Wang
2017-01-20 19:14                       ` Richard Earnshaw (lists)
     [not found]       ` <60457276-8566-8bef-6073-4b00dd975759@foss.arm.com>
     [not found]         ` <2718d6de-4571-694b-3eeb-90b7b839a867@foss.arm.com>
2017-01-06 11:47           ` [2/5][AArch64] Generate dwarf information for -msign-return-address Jiong Wang
2017-01-13 16:09             ` Richard Earnshaw (lists)
2017-01-13 18:02               ` Jiong Wang
2017-01-16 14:29                 ` [2/5][DWARF] Generate dwarf information for -msign-return-address by introducing new DWARF mapping hook Jiong Wang
2017-01-17 13:57                   ` Richard Earnshaw (lists)
2017-01-17 15:11                     ` Jiong Wang
2017-01-19 14:19                       ` Richard Earnshaw (lists)
     [not found]         ` <1e3f0dce-74c8-5a80-ed5a-7e6feeec1e63@foss.arm.com>
     [not found]           ` <8d24add0-1c8d-6778-11dd-f7d018b34396@foss.arm.com>
2017-01-06 11:47             ` [3/5][AArch64] New builtins required by libgcc unwinder Jiong Wang
2017-01-13 16:14               ` Richard Earnshaw (lists)
     [not found]           ` <97fad7f9-cb42-ab1c-f039-ba42d5dc72c8@foss.arm.com>
     [not found]             ` <d0b329fc-d564-3b14-da21-0eb084c6661f@foss.arm.com>
     [not found]               ` <fdda17f4-5594-c983-64ac-158a9ba43e4c@foss.arm.com>
2017-01-06 11:47                 ` [5/5][AArch64, libgcc] Runtime support for AArch64 DWARF operations Jiong Wang
2017-01-12 18:10                   ` [Ping~]Re: [5/5][AArch64, libgcc] Runtime support for AArch64 return address signing (also attached target macros version) Jiong Wang
2017-01-13 14:12                     ` James Greenhalgh
2017-01-18 17:10                     ` [Ping~]Re: [5/5][libgcc] Runtime support for AArch64 return address signing (needs new target macros) Jiong Wang
2017-01-19 14:23                       ` Richard Earnshaw (lists)
2017-01-19 14:51                         ` Jiong Wang
2017-01-19 20:25                           ` Richard Earnshaw (lists)
2017-01-20  8:42                           ` Christophe Lyon
2017-01-20  9:46                             ` Jiong Wang
2017-01-20 10:19                               ` Christophe Lyon
2017-01-20 10:31                                 ` Jiong Wang
2017-01-20 10:32                                   ` Christophe Lyon
2017-01-20 11:55                                     ` Jiong Wang
2017-01-20 12:14                                       ` Richard Earnshaw (lists)
2017-01-20 14:33                                       ` Christophe Lyon
     [not found]             ` <e9d558d5-0f41-c1e1-e184-94a9311fa664@foss.arm.com>
2017-01-06 11:47               ` [4/5][AArch64, libgcc] Let AArch64 use customized unwinder file Jiong Wang

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=46b25fe0-30bc-1ebc-5e8c-1b218b0d4002@foss.arm.com \
    --to=jiong.wang@foss.arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=iant@google.com \
    --cc=james.greenhalgh@arm.com \
    --cc=joseph@codesourcery.com \
    /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).