Re: [PATCH] i386: Add save_stack_nonlocal and restore_stack_nonlocal

2018-04-19 Thread H.J. Lu
On Thu, Apr 19, 2018 at 8:51 AM, Tsimbalist, Igor V wrote: >> -Original Message- >> From: Lu, Hongjiu >> Sent: Sunday, April 15, 2018 12:58 PM >> To: gcc-patches@gcc.gnu.org >> Cc: Uros Bizjak ; Tsimbalist, Igor V >> >> Subject:

RE: [PATCH] i386: Add save_stack_nonlocal and restore_stack_nonlocal

2018-04-19 Thread Tsimbalist, Igor V
> -Original Message- > From: Lu, Hongjiu > Sent: Sunday, April 15, 2018 12:58 PM > To: gcc-patches@gcc.gnu.org > Cc: Uros Bizjak ; Tsimbalist, Igor V > > Subject: [PATCH] i386: Add save_stack_nonlocal and restore_stack_nonlocal > > Define STACK_SAVEAREA_MODE to

[PATCH] i386: Add save_stack_nonlocal and restore_stack_nonlocal

2018-04-15 Thread H.J. Lu
Define STACK_SAVEAREA_MODE to hold both shadow stack and stack pointers. Replace builtin_setjmp_setup and builtin_longjmp with save_stack_nonlocal and restore_stack_nonlocal to support both builtin setjmp/longjmp as well as non-local goto in nested functions. OK for trunk? H.J. gcc/