[PATCH][Binutils] Enforce C++11 as a minimum for building gold [PR30867]

Alan Modra amodra@gmail.com
Fri Jan 5 02:31:35 GMT 2024


On Thu, Jan 04, 2024 at 03:20:14PM +0000, Tamar Christina wrote:
> diff --git a/gold/configure.ac b/gold/configure.ac
> index 1716a779416a579d7514b280842fee88fde343cc..dfbfa155ac50fa6c2b3ffadc05a8de0b27679d22 100644
> --- a/gold/configure.ac
> +++ b/gold/configure.ac
> @@ -652,6 +652,10 @@ if test "$gold_cv_unordered_map_rehash" = "yes"; then
>  	    [Define if ::std::tr1::unordered_map::rehash is usable])
>  fi
>  
> +# Since 5e9091dab8858b25210a91d22fbbbfdee9c969ad gold now requires C++11
> +# So we need to check for it.
> +AX_CXX_COMPILE_STDCXX([11], [], [mandatory])
> +
>  # Use of tr1/unordered_map with off_t as a key is not supported on GCC
>  # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
>  AC_CACHE_CHECK([whether std::tr1::hash<off_t> is defined],

Applied, thanks!  I regenerated the rest of the files myself with
--enable-maintainer-mode which supplies -I flags you missed when
running aclocal by hand.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list