From patchwork Sun Nov 14 16:31:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralf Wildenhues X-Patchwork-Id: 71138 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 5273FB7114 for ; Mon, 15 Nov 2010 03:32:42 +1100 (EST) Received: (qmail 12010 invoked by alias); 14 Nov 2010 16:32:39 -0000 Received: (qmail 11999 invoked by uid 22791); 14 Nov 2010 16:32:38 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mail.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 14 Nov 2010 16:31:54 +0000 Received: (qmail invoked by alias); 14 Nov 2010 16:31:52 -0000 Received: from xdsl-78-34-208-16.netcologne.de (EHLO localhost.localdomain) [78.34.208.16] by mail.gmx.net (mp043) with SMTP; 14 Nov 2010 17:31:52 +0100 Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1PHfUd-0001PE-Kd; Sun, 14 Nov 2010 17:31:51 +0100 Date: Sun, 14 Nov 2010 17:31:51 +0100 From: Ralf Wildenhues To: iant@google.com Cc: gcc-patches@gcc.gnu.org Subject: [gccgo] toplevel check-go target Message-ID: <20101114163151.GM3399@gmx.de> Mail-Followup-To: Ralf Wildenhues , iant@google.com, gcc-patches@gcc.gnu.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2010-08-04) 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 allows 'make check-go' to work from the toplevel. Tested by running that command. :-) OK to commit to the branch? Or add libgo as lib-check-target also? I get two testsuite failures (with or without the patch): spawn [open ...]^M FAIL: ./tmp.go execution, -O2 -g [...] $GOARCH: no such environment variable FAIL: go.test/test/env.go execution, -O2 -g where the first one seems to come from pass 1 of go.test/test/index.go, and the second one goes away if I set GOARCH to amd64 or so. Would be nice if the logging would not mention the temporary file name only. Thanks, Ralf Toplevel check-go target. 2010-11-14 Ralf Wildenhues * Makefile.def: Add gcc-check-target languages entry for go. * Makefile.in: Regenerate. diff --git a/Makefile.def b/Makefile.def index d8f4217..2ea05bd 100644 --- a/Makefile.def +++ b/Makefile.def @@ -590,6 +590,7 @@ languages = { language=ada; gcc-check-target=check-ada; languages = { language=objc; gcc-check-target=check-objc; lib-check-target=check-target-libobjc; }; languages = { language=obj-c++; gcc-check-target=check-obj-c++; }; +languages = { language=go; gcc-check-target=check-go; }; // Toplevel bootstrap bootstrap_stage = { id=1 ; };