* [PATCH,committed,toplevel] Sync configure.ac with gcc@165133
@ 2010-10-07 20:50 Dave Korn
0 siblings, 0 replies; only message in thread
From: Dave Korn @ 2010-10-07 20:50 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
FYI:
Committed the attached to keep top-level in sync with GCC after applying it
over there first.
ChangeLog:
* configure.ac (build_lto_plugin): New shell variable.
(--enable-lto): Turn on by default for all non-ELF platforms that
have had LTO support added so far. Set build_lto_plugin appropriately
for both ELF and non-ELF.
(configdirs): Add lto-plugin or not based on build_lto_plugin.
* configure: Regenerate.
cheers,
DaveK
[-- Attachment #2: lto-plugin-toplevel-sync.diff --]
[-- Type: text/x-c, Size: 4182 bytes --]
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/configure.ac,v
retrieving revision 1.108
diff -p -u -r1.108 configure.ac
--- configure.ac 2 Oct 2010 14:54:05 -0000 1.108
+++ configure.ac 7 Oct 2010 20:43:14 -0000
@@ -1786,9 +1786,11 @@ to specify its location.])
# Flags needed for libelf.
AC_SUBST(libelflibs)
AC_SUBST(libelfinc)
+ # ELF platforms build the lto-plugin when GOLD is in use.
+ build_lto_plugin=${ENABLE_GOLD}
fi],[if test x"$default_enable_lto" = x"yes" ; then
case $target in
- *-apple-darwin*) ;;
+ *-apple-darwin* | *-cygwin* | *-mingw*) ;;
# On other non-ELF platforms, LTO must be explicitly enabled.
*) enable_lto=no ;;
esac
@@ -1799,13 +1801,18 @@ fi],[if test x"$default_enable_lto" = x"
# warn during gcc/ subconfigure; unless you're bootstrapping with
# -flto it won't be needed until after installation anyway.
case $target in
- *-cygwin*|*-mingw* | *-apple-darwin*) ;;
+ *-cygwin* | *-mingw* | *-apple-darwin*) ;;
*) if test x"$enable_lto" = x"yes"; then
AC_MSG_ERROR([LTO support is not enabled for this target.])
fi
;;
esac
fi
+ # Among non-ELF, only Windows platforms support the lto-plugin so far.
+ case $target in
+ *-cygwin* | *-mingw*) build_lto_plugin=yes ;;
+ *) ;;
+ esac
default_enable_lto=no])
@@ -1884,7 +1891,7 @@ if test -d ${srcdir}/gcc; then
*,lto,*) ;;
*) enable_languages="${enable_languages},lto" ;;
esac
- if test "${ENABLE_GOLD}" = "yes" ; then
+ if test "${build_lto_plugin}" = "yes" ; then
configdirs="$configdirs lto-plugin"
extra_host_libiberty_configure_flags=--enable-shared
fi
Index: configure
===================================================================
RCS file: /cvs/src/src/configure,v
retrieving revision 1.362
diff -p -u -r1.362 configure
--- configure 2 Oct 2010 14:54:06 -0000 1.362
+++ configure 7 Oct 2010 20:43:31 -0000
@@ -6676,11 +6676,13 @@ to specify its location." "$LINENO" 5
# Flags needed for libelf.
+ # ELF platforms build the lto-plugin when GOLD is in use.
+ build_lto_plugin=${ENABLE_GOLD}
fi
else
if test x"$default_enable_lto" = x"yes" ; then
case $target in
- *-apple-darwin*) ;;
+ *-apple-darwin* | *-cygwin* | *-mingw*) ;;
# On other non-ELF platforms, LTO must be explicitly enabled.
*) enable_lto=no ;;
esac
@@ -6691,13 +6693,18 @@ else
# warn during gcc/ subconfigure; unless you're bootstrapping with
# -flto it won't be needed until after installation anyway.
case $target in
- *-cygwin*|*-mingw* | *-apple-darwin*) ;;
+ *-cygwin* | *-mingw* | *-apple-darwin*) ;;
*) if test x"$enable_lto" = x"yes"; then
as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
fi
;;
esac
fi
+ # Among non-ELF, only Windows platforms support the lto-plugin so far.
+ case $target in
+ *-cygwin* | *-mingw*) build_lto_plugin=yes ;;
+ *) ;;
+ esac
default_enable_lto=no
fi
@@ -6778,7 +6785,7 @@ if test -d ${srcdir}/gcc; then
*,lto,*) ;;
*) enable_languages="${enable_languages},lto" ;;
esac
- if test "${ENABLE_GOLD}" = "yes" ; then
+ if test "${build_lto_plugin}" = "yes" ; then
configdirs="$configdirs lto-plugin"
extra_host_libiberty_configure_flags=--enable-shared
fi
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/ChangeLog,v
retrieving revision 1.933
diff -p -u -r1.933 ChangeLog
--- ChangeLog 7 Oct 2010 19:25:44 -0000 1.933
+++ ChangeLog 7 Oct 2010 20:43:53 -0000
@@ -1,3 +1,12 @@
+2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * configure.ac (build_lto_plugin): New shell variable.
+ (--enable-lto): Turn on by default for all non-ELF platforms that
+ have had LTO support added so far. Set build_lto_plugin appropriately
+ for both ELF and non-ELF.
+ (configdirs): Add lto-plugin or not based on build_lto_plugin.
+ * configure: Regenerate.
+
2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/45326
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-07 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-07 20:50 [PATCH,committed,toplevel] Sync configure.ac with gcc@165133 Dave Korn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).