From 426c1eb04bf1549ab72e35cb49cac0a5a36fb83b Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 20 Feb 2015 10:40:52 +0100 Subject: [PATCH] If we're building an offloading compiler, always enable the LTO front end. * configure.ac [--enable-as-accelerator-for] (enable_languages): Make sure it contains lto. * configure: Regenerate. From-SVN: r220838 --- ChangeLog | 6 ++++++ configure | 8 ++++++++ configure.ac | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index a9e4437a871..bb5f2efa795 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-02-20 Thomas Schwinge + + * configure.ac [--enable-as-accelerator-for] (enable_languages): + Make sure it contains lto. + * configure: Regenerate. + 2015-02-18 Thomas Schwinge * configure: Regenerate. diff --git a/configure b/configure index f20a6abb845..fcfe44f4fd8 100755 --- 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, diff --git a/configure.ac b/configure.ac index 4ea5e0061bf..08a6fbf991d 100644 --- a/configure.ac +++ b/configure.ac @@ -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, -- 2.30.2