If we're building an offloading compiler, always enable the LTO front end.
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 20 Feb 2015 09:40:52 +0000 (10:40 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 20 Feb 2015 09:40:52 +0000 (10:40 +0100)
* configure.ac [--enable-as-accelerator-for] (enable_languages):
Make sure it contains lto.
* configure: Regenerate.

From-SVN: r220838

ChangeLog
configure
configure.ac

index a9e4437a871d554a6fd7830cbb132354cf196bd1..bb5f2efa795ad763a3e42cef8c55aa9395527e9f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-20  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * configure.ac [--enable-as-accelerator-for] (enable_languages):
+       Make sure it contains lto.
+       * configure: Regenerate.
+
 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
 
        * configure: Regenerate.
index f20a6abb84581e634b38e8b46fe4d3e38410e95c..fcfe44f4fd824b3d20dcdd6d0090e38d26aab1e5 100755 (executable)
--- a/configure
+++ b/configure
@@ -6218,6 +6218,14 @@ if test -d ${srcdir}/gcc; then
     fi
   fi
 
+  # If we're building an offloading compiler, add the LTO front end.
+  if test x"$enable_as_accelerator_for" != x ; then
+    case ,${enable_languages}, in
+      *,lto,*) ;;
+      *) enable_languages="${enable_languages},lto" ;;
+    esac
+  fi
+
   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
   potential_languages=,c,
 
index 4ea5e0061bfbb213f118275b184293f806a970e7..08a6fbf991dbf27ee1788590ae5d2a16633ac83d 100644 (file)
@@ -1918,6 +1918,14 @@ if test -d ${srcdir}/gcc; then
     fi
   fi
 
+  # If we're building an offloading compiler, add the LTO front end.
+  if test x"$enable_as_accelerator_for" != x ; then
+    case ,${enable_languages}, in
+      *,lto,*) ;;
+      *) enable_languages="${enable_languages},lto" ;;
+    esac
+  fi
+
   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
   potential_languages=,c,