diff options
author | Tamar Christina <tamar.christina@arm.com> | 2024-01-04 15:20:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-01-05 13:00:11 +1030 |
commit | 941d02eaae0557c80c9e4130478e584a8b284494 (patch) | |
tree | f1d28d68642d792b0b2ee228c2ee3e5a450a1275 /gold/testsuite | |
parent | 375beedfd34162b1aeb9b28cacd6f458834716da (diff) | |
download | binutils-941d02eaae0557c80c9e4130478e584a8b284494.zip binutils-941d02eaae0557c80c9e4130478e584a8b284494.tar.gz binutils-941d02eaae0557c80c9e4130478e584a8b284494.tar.bz2 |
Enforce C++11 as a minimum for building gold [PR30867]
The attempt in 5e9091dab885 to correct gold for modern LLVM has broken
gold for older compilers. This commit introduced C++11 types without
changing the build system to require a C++ compiler. More importantly
it depends on the compiler having at least C++11 as the default
language. Older compilers which support C++11 but not as the default
language needlessly break. Fix that.
PR gold/30867
* configure.ac (AX_CXX_COMPILE_STDCXX): Require C++11.
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/testsuite')
-rw-r--r-- | gold/testsuite/Makefile.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in index ffd4821..33d5cd7 100644 --- a/gold/testsuite/Makefile.in +++ b/gold/testsuite/Makefile.in @@ -1138,7 +1138,9 @@ check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ @DEFAULT_TARGET_X86_64_TRUE@ retain_2.out subdir = testsuite ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../config/ax_pthread.m4 \ +am__aclocal_m4_deps = \ + $(top_srcdir)/../config/ax_cxx_compile_stdcxx.m4 \ + $(top_srcdir)/../config/ax_pthread.m4 \ $(top_srcdir)/../config/depstand.m4 \ $(top_srcdir)/../config/gettext-sister.m4 \ $(top_srcdir)/../config/gettext.m4 \ @@ -2647,6 +2649,7 @@ GMSGFMT = @GMSGFMT@ GOLD_LDADD = @GOLD_LDADD@ GOLD_LDFLAGS = @GOLD_LDFLAGS@ GREP = @GREP@ +HAVE_CXX11 = @HAVE_CXX11@ INCINTL = @INCINTL@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ |