forked from Imagelibrary/binutils-gdb
gdbsupport: replace AC_TRY_COMPILE in warning.m4
Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE + AC_LANG_PROGRAM. All changes in generated configure files are insignificant whitespace changes. gdb/ChangeLog: * configure: Re-generate. gdbserver/ChangeLog: * configure: Re-generate. gdbsupport/ChangeLog: * configure: Re-generate. * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE + AC_LANG_PROGRAM. Change-Id: I517bd20ec3af960ad999a586761df0ac8959a3fc
This commit is contained in:
1
gdb/configure
vendored
1
gdb/configure
vendored
@@ -16570,6 +16570,7 @@ int
|
||||
main ()
|
||||
{
|
||||
const scoped_restore_base &b = scoped_restore_tmpl();
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
1
gdbserver/configure
vendored
1
gdbserver/configure
vendored
@@ -9827,6 +9827,7 @@ int
|
||||
main ()
|
||||
{
|
||||
const scoped_restore_base &b = scoped_restore_tmpl();
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
1
gdbsupport/configure
vendored
1
gdbsupport/configure
vendored
@@ -10313,6 +10313,7 @@ int
|
||||
main ()
|
||||
{
|
||||
const scoped_restore_base &b = scoped_restore_tmpl();
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -139,15 +139,23 @@ then
|
||||
# Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
|
||||
# fixed in GCC 4.9. This test is derived from the gdb
|
||||
# source code that triggered this bug in GCC.
|
||||
AC_TRY_COMPILE(
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[struct scoped_restore_base {};
|
||||
struct scoped_restore_tmpl : public scoped_restore_base {
|
||||
~scoped_restore_tmpl() {}
|
||||
};],
|
||||
[const scoped_restore_base &b = scoped_restore_tmpl();],
|
||||
WARN_CFLAGS="${WARN_CFLAGS} $w",)
|
||||
[const scoped_restore_base &b = scoped_restore_tmpl();]
|
||||
)],
|
||||
[WARN_CFLAGS="${WARN_CFLAGS} $w"],
|
||||
[]
|
||||
)
|
||||
else
|
||||
AC_TRY_COMPILE([],[],WARN_CFLAGS="${WARN_CFLAGS} $w",)
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([], [])],
|
||||
[WARN_CFLAGS="${WARN_CFLAGS} $w"],
|
||||
[]
|
||||
)
|
||||
fi
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
CXXFLAGS="$saved_CXXFLAGS"
|
||||
|
||||
Reference in New Issue
Block a user