From patchwork Mon Jan 31 20:28:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 81229 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 31446B711F for ; Tue, 1 Feb 2011 07:28:55 +1100 (EST) Received: (qmail 304 invoked by alias); 31 Jan 2011 20:28:53 -0000 Received: (qmail 32755 invoked by uid 22791); 31 Jan 2011 20:28:52 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Jan 2011 20:28:47 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id p0VKSiR2018259 for ; Mon, 31 Jan 2011 12:28:44 -0800 Received: from qwd6 (qwd6.prod.google.com [10.241.193.198]) by wpaz1.hot.corp.google.com with ESMTP id p0VKPx0h017935 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Mon, 31 Jan 2011 12:28:43 -0800 Received: by qwd6 with SMTP id 6so5949067qwd.23 for ; Mon, 31 Jan 2011 12:28:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.20.81 with SMTP id e17mr6676675qab.135.1296505723005; Mon, 31 Jan 2011 12:28:43 -0800 (PST) Received: by 10.220.179.132 with HTTP; Mon, 31 Jan 2011 12:28:42 -0800 (PST) In-Reply-To: References: <20110131190309.GA24032@intel.com> Date: Mon, 31 Jan 2011 15:28:42 -0500 Message-ID: Subject: Re: PATCH: PR driver/47547: WHOPR, can't use /dev/null as an output file From: Diego Novillo To: "H.J. Lu" Cc: gcc-patches@gcc.gnu.org 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 On Mon, Jan 31, 2011 at 15:22, H.J. Lu wrote: > In the meantime, is that OK without a testcase? I'd rather have a testcase, since it doesn't really seem all that hard. Could you check if this does what I think it should? Thanks. Diego. Index: testsuite/lib/lto.exp =================================================================== --- testsuite/lib/lto.exp (revision 168468) +++ testsuite/lib/lto.exp (working copy) @@ -295,6 +295,8 @@ proc lto-get-options-main { src } { set compile_type "run" } elseif { ![string compare "link" $dgdo] } { set compile_type "link" + } elseif { ![string compare "compile-null" $dgdo] } { + set compile_type "compile-null" } else { warning "lto.exp does not support dg-lto-do $dgdo" } Index: testsuite/lib/gcc-dg.exp =================================================================== --- testsuite/lib/gcc-dg.exp (revision 168468) +++ testsuite/lib/gcc-dg.exp (working copy) @@ -114,6 +114,10 @@ proc gcc-dg-test-1 { target_compile prog set compile_type "assembly" set output_file "[file rootname [file tail $prog]].s" } + "compile-null" { + set compile_type "assembly" + set output_file "/dev/null" + } "assemble" { set compile_type "object" set output_file "[file rootname [file tail $prog]].o"