public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>
To: Jiong Wang <jiong.wang@foss.arm.com>,
	Christophe Lyon <christophe.lyon@linaro.org>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>,
	James Greenhalgh <james.greenhalgh@arm.com>
Subject: Re: [Ping~]Re: [5/5][libgcc] Runtime support for AArch64 return address signing (needs new target macros)
Date: Fri, 20 Jan 2017 12:14:00 -0000	[thread overview]
Message-ID: <a482a21f-666b-edad-98c4-7a2393e21998@arm.com> (raw)
In-Reply-To: <1d8595e6-1384-d4ec-9a76-0cd12cb64335@foss.arm.com>

On 20/01/17 11:54, Jiong Wang wrote:
> On 20/01/17 10:30, Christophe Lyon wrote:
>>>>>> error: 'DWARF_REGNUM_AARCH64_RA_STATE' undeclared (first use in this
>>>>>> function)
>>>>>>        fs->regs.reg[DWARF_REGNUM_AARCH64_RA_STATE].loc.offset ^= 1;
>>>>>>                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>
>>>>> Hi Christophe, could you please confirm you svn revision please?
>>>>>
>>>>> I do have done bootstrap and regression on both x86 and aarch64 before
>>>>> commit this patch.  I had forgotten to "svn add" one header file,
>>>>> but add
>>>>> it
>>>>> later.
>>>>>
>>>> The failures started with r244673, and are still present with r244687.
>>>> When did you add the missing file?
>>>
>>> It was r244674,
>>> https://gcc.gnu.org/ml/gcc-cvs/2017-01/msg00689.html,  so
>>> should have been included in your code.  The faliure looks strange to me
>>> then,  I will svn up and re-start a fresh bootstrap on AArch64.
>>>
>> The file is present in my git clone.
>> I'm not bootstrapping on AArch64, I'm building a cross-compiler on
>> x86_64,
>> but it shouldn't matter.
> 
> Hi Christophe,
> 
>   Thanks, I reproduced this on cross linux environment, the reason is
> the header file is not included because of the inhabit_libc guard, while
> the unwinder header file should always be included.
> 
>    I will committed the attached patch as obvious, once I finished a
> fresh bootstrap, cross elf, cross linux.
> 

If this survives a cross-build, please just commit it.  It's very
unlikely that a native build will throw up any problems.

R.

>    Thanks.
> 
> libgcc/
> 
> 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
> 
>         * config/aarch64/linux-unwind.h: Always include aarch64-unwind.h.
> 
> 
> 
> k.patch
> 
> 
> diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h
> index a8fa1d5..70e5a8a 100644
> --- a/libgcc/config/aarch64/linux-unwind.h
> +++ b/libgcc/config/aarch64/linux-unwind.h
> @@ -20,11 +20,13 @@
>     see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
>     <http://www.gnu.org/licenses/>.  */
>  
> +/* Always include AArch64 unwinder header file.  */
> +#include "config/aarch64/aarch64-unwind.h"
> +
>  #ifndef inhibit_libc
>  
>  #include <signal.h>
>  #include <sys/ucontext.h>
> -#include "config/aarch64/aarch64-unwind.h"
>  
>  
>  /* Since insns are always stored LE, on a BE system the opcodes will
> 

  reply	other threads:[~2017-01-20 12:07 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>
2016-11-11 18:34     ` [3/9][AArch64] Add commandline support for -march=armv8.3-a Jiong Wang
     [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>
     [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
     [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:35         ` [5/9][AArch64] Generate dwarf information for -msign-return-address 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]         ` <1e3f0dce-74c8-5a80-ed5a-7e6feeec1e63@foss.arm.com>
     [not found]           ` <97fad7f9-cb42-ab1c-f039-ba42d5dc72c8@foss.arm.com>
     [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
     [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) [this message]
2017-01-20 14:33                                       ` Christophe Lyon
     [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]         ` <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)

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=a482a21f-666b-edad-98c4-7a2393e21998@arm.com \
    --to=richard.earnshaw@arm.com \
    --cc=christophe.lyon@linaro.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=james.greenhalgh@arm.com \
    --cc=jiong.wang@foss.arm.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).