mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
gdb: replace AC_TRY_LINK in sanitize.m4
... with AC_LINK_IFELSE + AC_LANG_PROGRAM. All changes in the generated configure file are insignificant whitespace changes. gdb/ChangeLog: * configure: Re-generate. * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE + AC_LANG_PROGRAM. Change-Id: I6fc4c39e10b28d2ade964e0d59a7f8ec0d3a272a
This commit is contained in:
parent
b9442ec18b
commit
ad6dba1cea
@ -1,3 +1,9 @@
|
|||||||
|
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
|
* configure: Re-generate.
|
||||||
|
* sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
|
||||||
|
AC_LANG_PROGRAM.
|
||||||
|
|
||||||
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
|
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
* configure: Re-generate.
|
* configure: Re-generate.
|
||||||
|
1
gdb/configure
vendored
1
gdb/configure
vendored
@ -16655,6 +16655,7 @@ if ac_fn_cxx_try_link "$LINENO"; then :
|
|||||||
enable_ubsan=yes
|
enable_ubsan=yes
|
||||||
else
|
else
|
||||||
enable_ubsan=no
|
enable_ubsan=no
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
@ -34,7 +34,11 @@ if test "x$enable_ubsan" = xyes; then
|
|||||||
dnl A link check is required because it is possible to install gcc
|
dnl A link check is required because it is possible to install gcc
|
||||||
dnl without libubsan, leading to link failures when compiling with
|
dnl without libubsan, leading to link failures when compiling with
|
||||||
dnl -fsanitize=undefined.
|
dnl -fsanitize=undefined.
|
||||||
AC_TRY_LINK([],[],enable_ubsan=yes,enable_ubsan=no)
|
AC_LINK_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM([], [])],
|
||||||
|
[enable_ubsan=yes],
|
||||||
|
[enable_ubsan=no]
|
||||||
|
)
|
||||||
CXXFLAGS="$saved_CXXFLAGS"
|
CXXFLAGS="$saved_CXXFLAGS"
|
||||||
AC_MSG_RESULT($enable_ubsan)
|
AC_MSG_RESULT($enable_ubsan)
|
||||||
if test "x$enable_ubsan" = xyes; then
|
if test "x$enable_ubsan" = xyes; then
|
||||||
|
Loading…
Reference in New Issue
Block a user