diff options
Diffstat (limited to 'libmpx')
-rw-r--r-- | libmpx/ChangeLog | 7 | ||||
-rw-r--r-- | libmpx/configure | 17 |
2 files changed, 22 insertions, 2 deletions
diff --git a/libmpx/ChangeLog b/libmpx/ChangeLog index 9ae654270b7..f8cc639fd0d 100644 --- a/libmpx/ChangeLog +++ b/libmpx/ChangeLog @@ -1,4 +1,9 @@ - 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> +2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com> + + PR target/84148 + * configure: Regenerate. + +2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> * Makefile.in: Regenerate. * acinclude.m4: Add enable.m4 and cet.m4. diff --git a/libmpx/configure b/libmpx/configure index 7bc68b81e4f..dfa4419b840 100644 --- a/libmpx/configure +++ b/libmpx/configure @@ -11598,18 +11598,28 @@ else fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 +$as_echo_n "checking for CET support... " >&6; } + case "$host" in i[34567]86-*-linux* | x86_64-*-linux*) case "$enable_cet" in default) - # Check if assembler supports CET. + # Check if target supports multi-byte NOPs + # and if assembler supports CET insn. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { + +#if !defined(__SSE2__) +#error target does not support multi-byte NOPs +#else asm ("setssbsy"); +#endif + ; return 0; } @@ -11649,6 +11659,11 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext esac if test x$enable_cet = xyes; then CET_FLAGS="-fcf-protection -mcet" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi XCFLAGS="$XCFLAGS $CET_FLAGS" |