CET shouldn't be enabled in 32-bit run-time libraries by defualt
authorIgor Tsimbalist <igor.v.tsimbalist@intel.com>
Mon, 19 Feb 2018 16:25:49 +0000 (17:25 +0100)
committerIgor Tsimbalist <itsimbal@gcc.gnu.org>
Mon, 19 Feb 2018 16:25:49 +0000 (17:25 +0100)
commit14e335edc8c5c2cd18779e4e242a3d81037b8b43
tree5439816d0ec4a7a72c403e59851b0b78e2d23c88
parent65e3761d451229338a22226e154cb7d0bed5fcd1
CET shouldn't be enabled in 32-bit run-time libraries by defualt

ENDBR32 and RDSSPD are multi-byte NOPs on x86-64 processors and
newer x86 processors, starting Pentium Pro.  They are UD on older
32-bit processors. Detect this at configure time and adjust the
default value for enable_cet. GCC will enable CET in 32-bit run-time
libraries in any case if --enable-cet is used to configure GCC.

PR target/84148
* config/cet.m4: Check if target support multi-byte NOPS (SSE).
* libatomic/configure: Regenerate.
* libbacktrace/configure: Likewise.
* libgcc/configure: Likewise.
* libgfortran/configure: Likewise.
* libgomp/configure: Likewise.
* libitm/configure: Likewise.
* libmpx/configure: Likewise.
* libobjc/configure: Likewise.
* libquadmath/configure: Likewise.
* libsanitizer/configure: Likewise.
* libssp/configure: Likewise.
* libstdc++-v3/configure: Likewise.
* libvtv/configure: Likewise.

From-SVN: r257809
28 files changed:
config/ChangeLog
config/cet.m4
libatomic/ChangeLog
libatomic/configure
libbacktrace/ChangeLog
libbacktrace/configure
libgcc/ChangeLog
libgcc/configure
libgfortran/ChangeLog
libgfortran/configure
libgomp/ChangeLog
libgomp/configure
libitm/ChangeLog
libitm/configure
libmpx/ChangeLog
libmpx/configure
libobjc/ChangeLog
libobjc/configure
libquadmath/ChangeLog
libquadmath/configure
libsanitizer/ChangeLog
libsanitizer/configure
libssp/ChangeLog
libssp/configure
libstdc++-v3/ChangeLog
libstdc++-v3/configure
libvtv/ChangeLog
libvtv/configure