aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-10-31 08:31:00 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-10-31 08:31:00 -0400
commitad6dba1cea202de44f7f4597a73842e4ca47c639 (patch)
tree2fa4110af9b4776ba6793fcb15533ae1c22c5c64 /gdb
parentb9442ec18bbaf5544111cc0bb98f2eb50e58942b (diff)
downloadfsf-binutils-gdb-ad6dba1cea202de44f7f4597a73842e4ca47c639.zip
fsf-binutils-gdb-ad6dba1cea202de44f7f4597a73842e4ca47c639.tar.gz
fsf-binutils-gdb-ad6dba1cea202de44f7f4597a73842e4ca47c639.tar.bz2
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rwxr-xr-xgdb/configure1
-rw-r--r--gdb/sanitize.m46
3 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e3734cf..9154179 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,6 +1,12 @@
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.
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
diff --git a/gdb/configure b/gdb/configure
index a08c8c5..aa89158 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -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
diff --git a/gdb/sanitize.m4 b/gdb/sanitize.m4
index 78d0070..87a4f3c 100644
--- a/gdb/sanitize.m4
+++ b/gdb/sanitize.m4
@@ -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