Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-20 Thread Richard Biener
>longjmp (target->fc->jbuf, 1); > > > Igor > >> -----Original Message----- >> From: Andreas Schwab [mailto:sch...@linux-m68k.org] >> Sent: Saturday, November 18, 2017 2:51 PM >> To: Tsimbalist, Igor V >> Cc: Jeff Law ; gcc-patches@gcc.gnu.org; i..

RE: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-18 Thread Tsimbalist, Igor V
68k.org] > Sent: Saturday, November 18, 2017 2:51 PM > To: Tsimbalist, Igor V > Cc: Jeff Law ; gcc-patches@gcc.gnu.org; i...@airs.com > Subject: Re: [PATCH 08/22] Add Intel CET support for EH in libgcc. > > In file included from ../../../libgcc/config/ia64/unwind-ia64.c:2448: > ../

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-18 Thread Andreas Schwab
In file included from ../../../libgcc/config/ia64/unwind-ia64.c:2448: ../../../libgcc/unwind.inc: In function '_Unwind_RaiseException': ../../../libgcc/unwind.inc:140:3: error: too many arguments to function 'uw_install_context' uw_install_context (&this_context, &cur_context, frames); ^

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-16 Thread Jeff Law
el-CET-support-for-EH-in-libgcc.patch > > > From 47fe033b2a23397be50455b7661ad499c42209be Mon Sep 17 00:00:00 2001 > From: Igor Tsimbalist > Date: Wed, 19 Jul 2017 03:04:46 +0300 > Subject: [PATCH 08/22] Add Intel CET support for EH in libgcc. > > Control-flow Enforcement Te

RE: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-13 Thread Tsimbalist, Igor V
New patch is attached. The difference is that all newly introduced macro are removed except of _Unwind_Frames_Extra macro. They are replaced with new parameters and local variables. Igor 0008-Add-Intel-CET-support-for-EH-in-libgcc.patch Description: 0008-Add-Intel-CET-support-for-EH-in-libgcc.p

RE: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-08 Thread Tsimbalist, Igor V
> -Original Message- > From: Jeff Law [mailto:l...@redhat.com] > Sent: Wednesday, November 8, 2017 8:06 PM > To: Tsimbalist, Igor V ; gcc- > patc...@gcc.gnu.org > Cc: i...@airs.com > Subject: Re: [PATCH 08/22] Add Intel CET support for EH in libgcc. > > On 11/0

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-08 Thread H.J. Lu
>> >>> Has this been tested anywhere other than x86/x86_64 linux? >> Yes, I tested it on arm64 system. I applied 2 patches, previous 07/22 and >> this one 08/22. Everything >> was built successfully. Further to the building I did testing also. No new >> fails. > So how does that reconcile with H-

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-08 Thread Jeff Law
gt; (_Unwind_Resume): Use FRAMES_VAR_DECL, FRAMES_VAR_P and >>> FRAMES_VAR. >>> (_Unwind_Resume_or_Rethrow): Use FRAMES_VAR_DECL, >> FRAMES_VAR_P >>> and FRAMES_VAR. >>> >>> Igor >>> >>> >>> >>> 0

RE: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-04 Thread Tsimbalist, Igor V
> -Original Message- > From: Jeff Law [mailto:l...@redhat.com] > Sent: Tuesday, October 31, 2017 5:49 AM > To: Tsimbalist, Igor V ; gcc- > patc...@gcc.gnu.org > Cc: i...@airs.com > Subject: Re: [PATCH 08/22] Add Intel CET support for EH in libgcc. > > On 10/1

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-10-30 Thread Jeff Law
, FRAMES_VAR_P and > FRAMES_VAR. > (_Unwind_Resume_or_Rethrow): Use FRAMES_VAR_DECL, FRAMES_VAR_P > and FRAMES_VAR. > > Igor > > > > 0008-Add-Intel-CET-support-for-EH-in-libgcc.patch > > > From 16eb1d0d9239e039fba28f1ae71762f19061b157 Mon

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-10-25 Thread H.J. Lu
On Thu, Oct 12, 2017 at 4:32 PM, Hans-Peter Nilsson wrote: > On Thu, 12 Oct 2017, Tsimbalist, Igor V wrote: >> * unwind.inc (_Unwind_RaiseException_Phase2): Use FRAMES_P_DECL, >> FRAMES_VAR_DECL_1, FRAMES_VAR_INC and FRAMES_P_UPDATE. >> (_Unwind_RaiseException): Use FRAMES_VAR_DE

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-10-12 Thread Hans-Peter Nilsson
On Thu, 12 Oct 2017, Tsimbalist, Igor V wrote: > * unwind.inc (_Unwind_RaiseException_Phase2): Use FRAMES_P_DECL, > FRAMES_VAR_DECL_1, FRAMES_VAR_INC and FRAMES_P_UPDATE. > (_Unwind_RaiseException): Use FRAMES_VAR_DECL, FRAMES_VAR_P and > FRAMES_VAR. > (_Unwind_ForcedU

[PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-10-12 Thread Tsimbalist, Igor V
Control-flow Enforcement Technology (CET), published by Intel, Introduces the Shadow Stack feature, which ensures a return from a function is done to exactly the same location from where the function was called. When EH is present the control-flow transfer may skip some stack frames and the shadow