@@ -6711,7 +6711,11 @@ fi
# By default, C is the only stage 1 language.
-stage1_languages=,c,
+if test "$enable_lto" = "yes" ; then
+ stage1_languages=,c,lto,
+else
+ stage1_languages=,c,
+fi
# Target libraries that we bootstrap.
bootstrap_target_libs=,target-libgcc,
@@ -6905,7 +6909,12 @@ if test "${enable_stage1_languages+set}" = set; then :
enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
,no,|,,)
# Set it to something that will have no effect in the loop below
- enable_stage1_languages=c ;;
+ if test "$enable_lto" = "yes" ; then
+ enable_stage1_languages=c,lto
+ else
+ enable_stage1_languages=c
+ fi
+ ;;
,yes,)
enable_stage1_languages=`echo $new_enable_languages | \
sed -e "s/^,//" -e "s/,$//" ` ;;
@@ -1817,7 +1817,11 @@ fi],[if test x"$default_enable_lto" = x"yes" ; then
# By default, C is the only stage 1 language.
-stage1_languages=,c,
+if test "$enable_lto" = "yes" ; then
+ stage1_languages=,c,lto,
+else
+ stage1_languages=,c,
+fi
# Target libraries that we bootstrap.
bootstrap_target_libs=,target-libgcc,
@@ -2012,7 +2016,12 @@ if test -d ${srcdir}/gcc; then
[case ,${enable_stage1_languages}, in
,no,|,,)
# Set it to something that will have no effect in the loop below
- enable_stage1_languages=c ;;
+ if test "$enable_lto" = "yes" ; then
+ enable_stage1_languages=c,lto
+ else
+ enable_stage1_languages=c
+ fi
+ ;;
,yes,)
enable_stage1_languages=`echo $new_enable_languages | \
sed -e "s/^,//" -e "s/,$//" ` ;;