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:
Simon Marchi 2020-10-31 08:31:00 -04:00
parent b9442ec18b
commit ad6dba1cea
3 changed files with 12 additions and 1 deletions

View File

@ -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>
* configure: Re-generate.

1
gdb/configure vendored
View File

@ -16655,6 +16655,7 @@ if ac_fn_cxx_try_link "$LINENO"; then :
enable_ubsan=yes
else
enable_ubsan=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext

View File

@ -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 without libubsan, leading to link failures when compiling with
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"
AC_MSG_RESULT($enable_ubsan)
if test "x$enable_ubsan" = xyes; then