]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.ac (enable-lto): Add Darwin to the list of supported lto targets and amend...
authorIain Sandoe <iains@gcc.gnu.org>
Tue, 21 Sep 2010 14:32:36 +0000 (14:32 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 21 Sep 2010 14:32:36 +0000 (14:32 +0000)
* configure.ac (enable-lto): Add Darwin to the list of supported lto
targets and amend comment.
* configure: Regenerate.

From-SVN: r164481

ChangeLog
configure
configure.ac

index 683541c15df661142107dc03309f0344fc4e0de6..7e62471129469a660339d7a932789505165b1da2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-21  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * configure.ac (enable-lto): Add Darwin to the list of supported lto
+       targets and amend comment.
+       * configure: Regenerate.
+
 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
 
        * MAINTAINERS (Write After Approval): Add myself.
index 631ae657aabca09b8c5d8246790aa8d3232a532e..9e398677fdc5838771953f3e22e5293940167f1e 100755 (executable)
--- a/configure
+++ b/configure
@@ -6676,13 +6676,13 @@ else
       *) enable_lto=no ;;
     esac
   else
-  # Apart from ELF platforms, only Windows supports LTO so far.  It
-  # would also be nice to check the binutils support, but we don't
+  # Apart from ELF platforms, only Windows and Darwin support LTO so far.
+  # It would also be nice to check the binutils support, but we don't
   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
   # warn during gcc/ subconfigure; unless you're bootstrapping with
   # -flto it won't be needed until after installation anyway.
     case $target in
-      *-cygwin*|*-mingw*) ;;
+      *-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
index 66df1d103b6d7c07556b7ba28684ea5c51c035fc..67e79fe144e1003b1d17352046275abc630d1445 100644 (file)
@@ -1793,13 +1793,13 @@ fi],[if test x"$default_enable_lto" = x"yes" ; then
       *) enable_lto=no ;;
     esac
   else
-  # Apart from ELF platforms, only Windows supports LTO so far.  It
-  # would also be nice to check the binutils support, but we don't
+  # Apart from ELF platforms, only Windows and Darwin support LTO so far.
+  # It would also be nice to check the binutils support, but we don't
   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
   # warn during gcc/ subconfigure; unless you're bootstrapping with
   # -flto it won't be needed until after installation anyway.
     case $target in
-      *-cygwin*|*-mingw*) ;;
+      *-cygwin*|*-mingw* | *-apple-darwin*) ;;
       *) if test x"$enable_lto" = x"yes"; then
        AC_MSG_ERROR([LTO support is not enabled for this target.])
         fi