gcc/libitm
H.J. Lu ffc2fc06e3 x86: Update __CET__ check
__CET__ has been changed by revision 259522:

commit d59cfa9a4064339cf2bd2da828c4c133f13e57f0
Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Apr 20 13:30:13 2018 +0000

    Define __CET__ for -fcf-protection and remove -mibt

to

    (__CET__ & 1) != 0: -fcf-protection=branch or -fcf-protection=full
    (__CET__ & 2) != 0: -fcf-protection=return or -fcf-protection=full

We should check (__CET__ & 2) != 0 for shadow stack.

libgcc/

	* config/i386/linux-unwind.h: Add (__CET__ & 2) != 0 check
	when including "config/i386/shadow-stack-unwind.h".

libitm/

	* config/x86/sjlj.S (_ITM_beginTransaction): Add
	(__CET__ & 2) != 0 check for shadow stack.
	(GTM_longjmp): Likewise.

From-SVN: r259621
2018-04-24 15:15:51 -07:00
..
config x86: Update __CET__ check 2018-04-24 15:15:51 -07:00
testsuite
aatree.cc
aatree.h
acinclude.m4
aclocal.m4
alloc_c.cc
alloc_cpp.cc
alloc.cc
barrier.cc
beginend.cc
ChangeLog x86: Update __CET__ check 2018-04-24 15:15:51 -07:00
clone.cc
common.h
config.h.in
configure Regenerate configure of target libraries 2018-04-24 09:45:26 -07:00
configure.ac
configure.tgt
containers.h
dispatch.h
eh_cpp.cc
libitm_i.h
libitm.h
libitm.map
libitm.spec.in
libitm.texi
local_atomic
local.cc
Makefile.am
Makefile.in
method-gl.cc
method-ml.cc
method-serial.cc
query.cc
retry.cc
useraction.cc
util.cc