From patchwork Wed Jul 13 01:04:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 104460 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 B9DEEB6F68 for ; Wed, 13 Jul 2011 11:05:16 +1000 (EST) Received: (qmail 12137 invoked by alias); 13 Jul 2011 01:05:15 -0000 Received: (qmail 12127 invoked by uid 22791); 13 Jul 2011 01:05:14 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, 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) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jul 2011 01:05:00 +0000 Received: from kpbe17.cbf.corp.google.com (kpbe17.cbf.corp.google.com [172.25.105.81]) by smtp-out.google.com with ESMTP id p6D14xlH022956 for ; Tue, 12 Jul 2011 18:05:00 -0700 Received: from iye7 (iye7.prod.google.com [10.241.50.7]) by kpbe17.cbf.corp.google.com with ESMTP id p6D14wnL007715 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 12 Jul 2011 18:04:58 -0700 Received: by iye7 with SMTP id 7so8523067iye.17 for ; Tue, 12 Jul 2011 18:04:58 -0700 (PDT) Received: by 10.42.131.196 with SMTP id a4mr603689ict.101.1310519097355; Tue, 12 Jul 2011 18:04:57 -0700 (PDT) Received: from coign.google.com ([67.218.103.165]) by mx.google.com with ESMTPS id v3sm1614433ibh.16.2011.07.12.18.04.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jul 2011 18:04:56 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: libgo patch committed: Run tests in source file order Date: Tue, 12 Jul 2011 18:04:53 -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 The libgo tests expect to be run in the order in which they appear in the source file. This patch uses -fno-toplevel-reorder to make sure that happens. Bootstrapped and ran libgo tests on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 8020981d5461 libgo/testsuite/gotest --- a/libgo/testsuite/gotest Mon Jul 11 13:25:57 2011 -0700 +++ b/libgo/testsuite/gotest Tue Jul 12 17:56:52 2011 -0700 @@ -288,11 +288,11 @@ prefixarg="-fgo-prefix=$prefix" fi -$GC -g $prefixarg -c -I . -o _gotest_.o $gofiles $pkgbasefiles +$GC -g $prefixarg -c -I . -fno-toplevel-reorder -o _gotest_.o $gofiles $pkgbasefiles if $havex; then mkdir -p `dirname $package` cp _gotest_.o `dirname $package`/lib`basename $package`.a - $GC -g -c -I . -o $xofile $xgofiles + $GC -g -c -I . -fno-toplevel-reorder -o $xofile $xgofiles fi # They all compile; now generate the code to call them.