Commit 426c1eb0 by Thomas Schwinge Committed by Thomas Schwinge

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
parent cb2d884d
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> 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
* configure: Regenerate. * configure: Regenerate.
......
...@@ -6218,6 +6218,14 @@ if test -d ${srcdir}/gcc; then ...@@ -6218,6 +6218,14 @@ if test -d ${srcdir}/gcc; then
fi fi
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,/,/ ` missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
potential_languages=,c, potential_languages=,c,
......
...@@ -1918,6 +1918,14 @@ if test -d ${srcdir}/gcc; then ...@@ -1918,6 +1918,14 @@ if test -d ${srcdir}/gcc; then
fi fi
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,/,/ ` missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
potential_languages=,c, potential_languages=,c,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment