From patchwork Fri Oct 29 22:46:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 69638 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 1B3F1B6F10 for ; Sat, 30 Oct 2010 09:46:59 +1100 (EST) Received: (qmail 20917 invoked by alias); 29 Oct 2010 22:46:58 -0000 Received: (qmail 20903 invoked by uid 22791); 29 Oct 2010 22:46:57 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, TW_CC, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Oct 2010 22:46:52 +0000 Received: from hpaq1.eem.corp.google.com (hpaq1.eem.corp.google.com [172.25.149.1]) by smtp-out.google.com with ESMTP id o9TMknob006690 for ; Fri, 29 Oct 2010 15:46:49 -0700 Received: from pwi1 (pwi1.prod.google.com [10.241.219.1]) by hpaq1.eem.corp.google.com with ESMTP id o9TMklmr007158 for ; Fri, 29 Oct 2010 15:46:48 -0700 Received: by pwi1 with SMTP id 1so1681324pwi.0 for ; Fri, 29 Oct 2010 15:46:47 -0700 (PDT) Received: by 10.142.222.2 with SMTP id u2mr1897222wfg.441.1288392406802; Fri, 29 Oct 2010 15:46:46 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-123-203.mtv.corp.google.com [172.22.123.203]) by mx.google.com with ESMTPS id w26sm2607483wfd.21.2010.10.29.15.46.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Oct 2010 15:46:45 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: [gccgo] Set lang_requires_boot_language Date: Fri, 29 Oct 2010 15:46:43 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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. Committed to gccgo branch. Ian diff -r 29d30bc6d2e1 go/config-lang.in --- 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++ + gtfiles="\$(srcdir)/go/go-lang.c"