From patchwork Fri Nov 5 17:38:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 70271 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 D377BB70F1 for ; Sat, 6 Nov 2010 04:38:56 +1100 (EST) Received: (qmail 11426 invoked by alias); 5 Nov 2010 17:38:55 -0000 Received: (qmail 11415 invoked by uid 22791); 5 Nov 2010 17:38:54 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from g5t0006.atlanta.hp.com (HELO g5t0006.atlanta.hp.com) (15.192.0.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Nov 2010 17:38:50 +0000 Received: from g5t0029.atlanta.hp.com (g5t0029.atlanta.hp.com [16.228.8.141]) by g5t0006.atlanta.hp.com (Postfix) with ESMTP id 7DDEEC1FB for ; Fri, 5 Nov 2010 17:38:48 +0000 (UTC) Received: from lucas.cup.hp.com (lucas.cup.hp.com [15.244.97.116]) by g5t0029.atlanta.hp.com (Postfix) with ESMTP id 1F7C22001E for ; Fri, 5 Nov 2010 17:38:47 +0000 (UTC) Received: (from sje@localhost) by lucas.cup.hp.com (8.11.1 (PHNE_35485)/8.11.1) id oA5HclL14379 for gcc-patches@gcc.gnu.org; Fri, 5 Nov 2010 10:38:47 -0700 (PDT) Date: Fri, 5 Nov 2010 10:38:47 -0700 (PDT) From: Steve Ellcey Message-Id: <201011051738.oA5HclL14379@lucas.cup.hp.com> To: gcc-patches@gcc.gnu.org Subject: [patch, testsuite] Patch to use c99 mode with two torture tests Reply-to: sje@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 The tests gcc.dg/torture/pr45982.c and gcc.dg/torture/pr45623.c use C99 types (uintptr_t, uint64_t) and so should be compiled in c99 mode. Without the -std=c99 these tests fail on IA64 HP-UX because the C99 types are only defined if you specifically request C99 compilation. Tested on IA64 HP-UX and Linux and x86 linux, OK for checkin? I will check them in as obvious in a few days if I don't hear any negative feedback. Steve Ellcey sje@cup.hp.com 2010-11-05 Steve Ellcey * gcc.dg/torture/pr45982.c: Add -std=c99 * gcc.dg/torture/pr45623.c: Ditto. Index: gcc.dg/torture/pr45982.c =================================================================== --- gcc.dg/torture/pr45982.c (revision 166346) +++ gcc.dg/torture/pr45982.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-options "-std=c99" } */ #include Index: gcc.dg/torture/pr45623.c =================================================================== --- gcc.dg/torture/pr45623.c (revision 166346) +++ gcc.dg/torture/pr45623.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-options "-std=c99" } */ #include