From patchwork Tue Mar 29 20:43:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 88864 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 5EA15B6F12 for ; Wed, 30 Mar 2011 07:58:07 +1100 (EST) Received: (qmail 29672 invoked by alias); 29 Mar 2011 20:58:06 -0000 Received: (qmail 29661 invoked by uid 22791); 29 Mar 2011 20:58:05 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from g4t0016.houston.hp.com (HELO g4t0016.houston.hp.com) (15.201.24.19) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Mar 2011 20:58:00 +0000 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0016.houston.hp.com (Postfix) with ESMTP id 00D2714B24; Tue, 29 Mar 2011 20:57:59 +0000 (UTC) Received: from [16.89.92.85] (hpsje.cup.hp.com [16.89.92.85]) by g4t0018.houston.hp.com (Postfix) with ESMTP id 0CF4C10D49; Tue, 29 Mar 2011 20:43:38 +0000 (UTC) Subject: Re: [testsuite] Fix gcc.dg/torture/pr47917.c on IRIX 6.5 From: Steve Ellcey Reply-To: sje@cup.hp.com To: Rainer Orth Cc: richard.guenther@gmail.com, gcc-patches@gcc.gnu.org In-Reply-To: References: <201103291728.p2THScM13587@lucas.cup.hp.com> Date: Tue, 29 Mar 2011 13:43:38 -0700 Message-ID: <1301431418.17764.380.camel@hpsje.cup.hp.com> Mime-Version: 1.0 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 Tue, 2011-03-29 at 19:50 +0200, Rainer Orth wrote: > /* { dg-options "-std=gnu99" { target *-*-hpux* } } */ > > Alternatively, the mips-sgi-irix6.5 variant might work, too. Either > patch is preapproved if this works for you. > > Thanks. > Rainer I went with the -std=gnu99 option. Here is the final patch that I tested and checked in: 2011-03-29 Steve Ellcey * gcc.dg/torture/pr47917.c: Use -std=gnu99 on HP-UX. Steve Ellcey sje@cup.hp.com Index: gcc.dg/torture/pr47917.c =================================================================== --- gcc.dg/torture/pr47917.c (revision 171649) +++ gcc.dg/torture/pr47917.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-options "-std=c99" } */ /* { dg-options "-std=c99 -D_XOPEN_SOURCE=500" { target mips-sgi-irix6.5 } } */ +/* { dg-options "-std=gnu99" { target *-*-hpux* } } */ /* { dg-xfail-if "no C99 snprintf function" { *-*-hpux10* } } */ /* { dg-xfail-run-if "non-conforming C99 snprintf" { *-*-hpux11.[012]* } } */