Message ID | 87bnkqdvny.fsf@schwinge.name |
---|---|
State | New |
Headers | show |
On Thu, Feb 19, 2015 at 11:48:17AM +0100, Thomas Schwinge wrote: > Like this? Yes. > commit 56c0312469f583ba3fa9fa2777981742ab6d6c75 > Author: Thomas Schwinge <thomas@codesourcery.com> > Date: Thu Feb 19 11:41:23 2015 +0100 > > 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. Ok for trunk. Jakub
Hi! On Thu, 19 Feb 2015 11:51:02 +0100, Jakub Jelinek <jakub@redhat.com> wrote: > On Thu, Feb 19, 2015 at 11:48:17AM +0100, Thomas Schwinge wrote: > > Like this? > > Yes. > > > commit 56c0312469f583ba3fa9fa2777981742ab6d6c75 > > Author: Thomas Schwinge <thomas@codesourcery.com> > > Date: Thu Feb 19 11:41:23 2015 +0100 > > > > 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. > > Ok for trunk. Committed in r220838. Grüße, Thomas
diff --git configure configure index dd794db..2afc52b 100755 --- configure +++ configure @@ -6217,6 +6217,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 configure.ac configure.ac index 4ea5e00..08a6fbf 100644 --- configure.ac +++ 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,