From patchwork Fri Aug 19 13:12:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 110594 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 65D9DB6F68 for ; Fri, 19 Aug 2011 23:13:16 +1000 (EST) Received: (qmail 22542 invoked by alias); 19 Aug 2011 13:13:14 -0000 Received: (qmail 22534 invoked by uid 22791); 19 Aug 2011 13:13:13 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Aug 2011 13:12:47 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 2DEB6389; Fri, 19 Aug 2011 15:12:46 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yRMbyQ5dDF9C; Fri, 19 Aug 2011 15:12:37 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 1D44D388; Fri, 19 Aug 2011 15:12:37 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id p7JDCabh002476; Fri, 19 Aug 2011 15:12:36 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: [testsuite] Require C99 runtime in gcc.dg/builtins-67.c, gcc.target/i386/conversion.c Date: Fri, 19 Aug 2011 15:12:36 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 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 Uros' two new testcases were failing on Solaris (both SPARC and x86) like this: FAIL: gcc.dg/builtins-67.c (test for excess errors) Excess errors: In file included from /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/builtins-67.c:6:0: /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/builtins-config.h:48:2: error: #error forgot to set -std=c99. Both tests need C99 flags. Fixed as follows, tested with the appropriate runtest invocations on i386-pc-solaris2.8 and x86_64-unknown-linux-gnu, installed on mainline. Rainer 2011-08-19 Rainer Orth * gcc.dg/builtins-67.c: Use dg-add-options c99_runtime. * gcc.target/i386/conversion.c: Likewise. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-08-19 Rainer Orth + + * gcc.dg/builtins-67.c: Use dg-add-options c99_runtime. + * gcc.target/i386/conversion.c: Likewise. + 2011-08-19 Richard Guenther * gcc.dg/torture/pr50067-1.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/builtins-67.c b/gcc/testsuite/gcc.dg/builtins-67.c --- a/gcc/testsuite/gcc.dg/builtins-67.c +++ b/gcc/testsuite/gcc.dg/builtins-67.c @@ -2,6 +2,7 @@ /* { dg-do link } */ /* { dg-options "-ffast-math -lm" } */ +/* { dg-add-options c99_runtime } */ #include "builtins-config.h" diff --git a/gcc/testsuite/gcc.target/i386/conversion.c b/gcc/testsuite/gcc.target/i386/conversion.c --- a/gcc/testsuite/gcc.target/i386/conversion.c +++ b/gcc/testsuite/gcc.target/i386/conversion.c @@ -2,6 +2,7 @@ /* { dg-do link } */ /* { dg-options "-ffast-math" } */ +/* { dg-add-options c99_runtime } */ #include "../../gcc.dg/builtins-config.h"