diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-04-05 15:22:13 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-04-05 15:22:13 -0700 |
commit | 552d4da4178cc5e8d567ee150462a28d51f08fc0 (patch) | |
tree | d4c7f488a5cefe4fc8032b93f8ae7057495c3b02 /config/cet.m4 | |
parent | c54b27d1c04f53043688d5d3141e74ae5c23aba8 (diff) | |
download | gdb-552d4da4178cc5e8d567ee150462a28d51f08fc0.zip gdb-552d4da4178cc5e8d567ee150462a28d51f08fc0.tar.gz gdb-552d4da4178cc5e8d567ee150462a28d51f08fc0.tar.bz2 |
config: Sync with GCC
Sync with GCC
2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
PR gas/22318
* plugins.m4 (AC_PLUGINS): Use dlsym to check if libdl is needed.
2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
PR target/84148
* cet.m4: Check if target support multi-byte NOPS (SSE).
Diffstat (limited to 'config/cet.m4')
-rw-r--r-- | config/cet.m4 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/config/cet.m4 b/config/cet.m4 index 715f4bd..23dd1f7 100644 --- a/config/cet.m4 +++ b/config/cet.m4 @@ -5,15 +5,24 @@ dnl AC_DEFUN([GCC_CET_FLAGS],[dnl GCC_ENABLE(cet, default, ,[enable Intel CET in target libraries], permit yes|no|default) +AC_MSG_CHECKING([for CET support]) + 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. AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [], - [asm ("setssbsy");])], + [ +#if !defined(__SSE2__) +#error target does not support multi-byte NOPs +#else +asm ("setssbsy"); +#endif + ])], [enable_cet=yes], [enable_cet=no]) ;; @@ -34,5 +43,8 @@ case "$host" in esac if test x$enable_cet = xyes; then $1="-fcf-protection -mcet" + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) fi ]) |