diff mbox

[gccgo] Set lang_requires_boot_language

Message ID mcraalu2pmd.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor Oct. 31, 2010, 6:17 p.m. UTC
Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:

> * Ian Lance Taylor wrote on Sat, Oct 30, 2010 at 12:46:43AM CEST:
>> This patch sets lang_requires_boot_language in the Go config-lang.in
>> file.  I will shortly send a patch which uses that at the top level to
>> know that bootstrapping the Go frontend requires building the C++
>> frontend at stage 1.
>
>> --- a/go/config-lang.in	Sat Oct 23 11:39:02 2010 -0700
>> +++ b/go/config-lang.in	Fri Oct 29 15:43:09 2010 -0700
>> @@ -16,4 +16,8 @@
>>  
>>  target_libs="target-libgo"
>>  
>> +# The Go frontend is written in C++, so we need to build the C++
>> +# compiler during stage 1.
>> +lang_requires_boot_language=c++
>
> Shouldn't that be lang_requires_boot_languages (note the final s)
> so the logic could apply to a list of languages as well eventually?

Fair enough.  Changed like so.

Ian
diff mbox

Patch

diff -r b2ec7c080fbe go/config-lang.in
--- a/go/config-lang.in	Fri Oct 29 15:44:58 2010 -0700
+++ b/go/config-lang.in	Sun Oct 31 11:14:19 2010 -0700
@@ -18,6 +18,6 @@ 
 
 # The Go frontend is written in C++, so we need to build the C++
 # compiler during stage 1.
-lang_requires_boot_language=c++
+lang_requires_boot_languages=c++
 
 gtfiles="\$(srcdir)/go/go-lang.c"
Index: configure.ac
===================================================================
--- configure.ac	(revision 166111)
+++ configure.ac	(working copy)
@@ -1866,10 +1866,10 @@  if test -d ${srcdir}/gcc; then
       ${srcdir}/gcc/[[*]]/config-lang.in) ;;
       *)
         # From the config-lang.in, get $language, $lang_requires, and
-        # $lang_requires_boot_language.
+        # $lang_requires_boot_languages.
         language=
         lang_requires=
-        lang_requires_boot_language=
+        lang_requires_boot_languages=
         . ${lang_frag}
         for other in ${lang_requires} ; do
           case ,${enable_languages}, in
@@ -1881,7 +1881,7 @@  if test -d ${srcdir}/gcc; then
 	      ;;
 	  esac
         done
-	for other in ${lang_requires_boot_language} ; do
+	for other in ${lang_requires_boot_languages} ; do
 	  if test "$other" != "c"; then
 	    case ,${enable_stage1_languages}, in
 	      *,$other,*) ;;