Fix toplevel 'config.status --recheck' for --enable-lto.

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Tue Oct 13 03:34:00 GMT 2009


FYI, I've synced this toplevel patch from GCC to src:
<http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00682.html>.

* Ralf Wildenhues wrote on Sun, Oct 11, 2009 at 01:10:45PM CEST:
> Currently, when rebuilding the tree after toplevel configure changed,
> and lto was enabled, the triggered './config.status --recheck' fails
[...]

> Fix toplevel 'config.status --recheck' for --enable-lto.
> 
> ChangeLog:
> 2009-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
> 
> 	* configure.ac: Add 'lto' to enable_languages, not
> 	new_enable_languages, and only if not already present.
> 	* configure: Regenerate.

> --- a/configure.ac
> +++ b/configure.ac
> @@ -1845,7 +1845,10 @@ if test -d ${srcdir}/gcc; then
>    # If LTO is enabled, add the LTO front end.
>    extra_host_libiberty_configure_flags=
>    if test "$enable_lto" = "yes" ; then
> -    new_enable_languages="${new_enable_languages}lto,"
> +    case ,${enable_languages}, in
> +      *,lto,*) ;;
> +      *) enable_languages="${enable_languages},lto" ;;
> +    esac
>      if test "${ENABLE_GOLD}" = "yes" ; then
>        configdirs="$configdirs lto-plugin"
>        extra_host_libiberty_configure_flags=--enable-shared



More information about the Gdb-patches mailing list