Patchwork [gccgo] Set lang_requires_boot_language

login
register
mail settings
Submitter Ian Taylor
Date Oct. 31, 2010, 6:17 p.m.
Message ID <mcraalu2pmd.fsf@google.com>
Download mbox | patch
Permalink /patch/69731/
State New
Headers show

Comments

Ian Taylor - Oct. 31, 2010, 6:17 p.m.
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

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,*) ;;