diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-05-12 18:37:03 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-05-12 18:37:03 -0700 |
commit | 90d00bbd9c514a0fea52d9dc44b98ce1dd564094 (patch) | |
tree | 95be8573f0dd17a81fe95b218960074ddd870fda /libiberty/configure | |
parent | 09f20ec88626cfba0a3e0ee0f5af80b172986d23 (diff) | |
download | gdb-90d00bbd9c514a0fea52d9dc44b98ce1dd564094.zip gdb-90d00bbd9c514a0fea52d9dc44b98ce1dd564094.tar.gz gdb-90d00bbd9c514a0fea52d9dc44b98ce1dd564094.tar.bz2 |
Sync config and libiberty with GCC
config/
PR bootstrap/94998
* cet.m4 (GCC_CET_HOST_FLAGS): Enable CET in cross compiler if
possible.
libiberty/
PR bootstrap/94998
* configure: Regenerated.
Diffstat (limited to 'libiberty/configure')
-rwxr-xr-x | libiberty/configure | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libiberty/configure b/libiberty/configure index bb76cf1..3f82c5b 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -5375,7 +5375,8 @@ rm -f core conftest.err conftest.$ac_objext \ fi if test x$may_have_cet = xyes; then - if test "$cross_compiling" = yes; then : + if test x$cross_compiling = xno; then + if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling @@ -5420,9 +5421,14 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi - if test x$enable_cet = xno -a x$have_cet = xyes; then - as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5 + if test x$enable_cet = xno -a x$have_cet = xyes; then + as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5 + fi fi +else + # Enable CET in cross compiler if possible so that it will run on both + # CET and non-CET hosts. + have_cet=yes fi if test x$enable_cet = xyes; then CET_HOST_FLAGS="-fcf-protection" |