From patchwork Fri Apr 7 09:45:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Preudhomme X-Patchwork-Id: 748139 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vzvpd0fjJz9s7c for ; Fri, 7 Apr 2017 19:45:59 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="CsgLwARm"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=mRJAfHSZEF99B5RQ9swzE7UiF8LiAKSGG0/jGTVQ5ew1sjrD2l 88/3KtRAGI0cK4w6jzWmq6dDcBJOjn3a2cOrPd0rfrFT2mHF6zHFqHKCOEV+6njq dMj2EI17UxlAJB33uMN3w94+YIdR2b9xRQsNh/vMuAb9ibDT220nsctWE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=Ek940yw+HI9VHaF5Ut467qqBIWc=; b=CsgLwARmhi4Db91qt5ZJ vRqpAI2tnJTKJteN5a6oRIYKUhjH0c2KaUwdqIix6Q/kdBC1gx6jvqV9ukvK1Q+J tTxDu1ChtaXwiU22icuqOLNXzsCrAlq2+BTIxrhlo4P0GGEUoe0BLaHGs3zDXOtd Jqix2G8hKY1VUAdxyf0Zlng= Received: (qmail 8075 invoked by alias); 7 Apr 2017 09:45:39 -0000 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 Received: (qmail 7749 invoked by uid 89); 7 Apr 2017 09:45:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Apr 2017 09:45:20 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A592C28 for ; Fri, 7 Apr 2017 02:45:19 -0700 (PDT) Received: from [10.2.206.52] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4EAAE3F3E1 for ; Fri, 7 Apr 2017 02:45:19 -0700 (PDT) To: "gcc-patches@gcc.gnu.org" From: Thomas Preudhomme Subject: [PATCH, GCC/testsuite] Require c99_runtime for pr79800.c Message-ID: <2621e203-e52c-912c-60ad-2b9761e65f51@foss.arm.com> Date: Fri, 7 Apr 2017 10:45:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-IsSubscribed: yes Hi, Testcase gcc.dg/tree-ssa/pr79800.c is run unconditionally. Yet, it uses the 'a' conversion specifier in sprintf which is only available in C99 or later version of the C standard. This commit adds a c99_runtime requirement. ChangeLog entry is as follows: *** gcc/testsuite/ChangeLog *** 2017-04-07 Thomas Preud'homme * gcc.dg/tree-ssa/pr79800.c: Require c99_runtime. Testing: test fails with newlib without c99 specifier support and is marked UNSUPPORTED with this patch. Committed as obvious. Best regards, Thomas diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c index 180a6e7863141cae15958df6fff5c7410ce9e39f..030e276698d105dd1ab1a7b775fb5fef48e02c59 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c @@ -1,6 +1,6 @@ /* PR 79800 - wrong snprintf result range with precision in a narrow negative-positive range - { dg-do "run" } + { dg-do "run" { target c99_runtime } } { dg-options "-O2 -Wall" } */ #define FMT "%.*a"