From patchwork Tue Jan 10 22:55:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Sebor X-Patchwork-Id: 90770 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp847751qgi; Tue, 10 Jan 2017 14:55:45 -0800 (PST) X-Received: by 10.84.129.131 with SMTP id b3mr8219847plb.54.1484088945777; Tue, 10 Jan 2017 14:55:45 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id g191si3585342pgc.78.2017.01.10.14.55.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 14:55:45 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-445811-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-445811-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-445811-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com 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=xR5ryoYOW8SvpQ+QNOlsH9cGmp/McNZK7PnIgoy2USYJWdYEyl 5ykYSaB57Ab2ECnbqBgksUnPGJDHzuFRhu2ld4w9HrCZYMrw4VaIcAPZEdkdLQOD Vg6AxZ8rk4s3kJAzcat/SfofI+aMoOsOswqt/ZZFpLsogpnXW1KyWuHtg= 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=LiF4Jf7E6dDzQEgo8JkxL9FuCmM=; b=asZzV/HQI2vXapkBX7Xw TvwDXoTLbYiQVZjG+55/Sokdv2vOlRWgmAehosp+IA/xPVUxqAuy/keQy9xlpD6b PfnoLQf1a2PRSEXXDBcVI6ljbq8uRCj4YaHEyNhepo+iaSKmdfhHdRlTDNPQMAK3 ZoBhY8hYe+JIRwCEFbddMeU= Received: (qmail 125959 invoked by alias); 10 Jan 2017 22:55:24 -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 125863 invoked by uid 89); 10 Jan 2017 22:55:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=LINE, Newlib, wrapping X-HELO: mail-qt0-f181.google.com Received: from mail-qt0-f181.google.com (HELO mail-qt0-f181.google.com) (209.85.216.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Jan 2017 22:55:22 +0000 Received: by mail-qt0-f181.google.com with SMTP id v23so180000282qtb.0 for ; Tue, 10 Jan 2017 14:55:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=3bGBy+8q/RDQq1QhONDcBKjMwuKJeKNxbz0QsISx1FI=; b=GJ/L4GGOcV2SuvIwqYwP5O33zXipGTRAnj09oddAhdSSkLuA0bqtlYOY+IjBnGrcpi 64/1RT0NFHT8/Bnd522iFU9hdEVywlUZ0HkA3Qhfy717JmJtpP1R2e/HrJ28d01nL09x msMJbBhuZy0ItxLn5RqemzhWSJm1iLPzdRwlyIy7LhPyMXdMFa5sEwQ8K474d6VTGEs3 MxaxhQtx35npAoOQUE7Zd1daca4e7PpDMX+VGRtUUN7VqPNXewQY/jzV0nwIaFL4x8Lx atZurO2MvZQvPE4xbm4tMsGUj54QUxnDakLoCMsEXIzkTC7DYzHGlmNClSORI/D8tqUL 6cXw== X-Gm-Message-State: AIkVDXIXI4aRVCMWlwmsv2i+OgXjxiQxoLRMk3qSFE5I+E7fDwEKiwr3Ys5QmNiH1Qe3ZA== X-Received: by 10.200.40.177 with SMTP id i46mr2345053qti.279.1484088920304; Tue, 10 Jan 2017 14:55:20 -0800 (PST) Received: from [192.168.0.26] (97-122-90-209.hlrn.qwest.net. [97.122.90.209]) by smtp.gmail.com with ESMTPSA id p10sm2594393qte.10.2017.01.10.14.55.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 14:55:19 -0800 (PST) To: Gcc Patch List From: Martin Sebor Subject: [committed] add C99 runtime requirement to a couple of tests Message-ID: <88fd1661-ea4b-01ab-0fa9-4e24f5b77395@gmail.com> Date: Tue, 10 Jan 2017 15:55:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 X-IsSubscribed: yes The three bugs below point test failures in a couple of the printf tests due to them exercising C99 features not present in the default runtime on the targets (the h and hh length modifiers on HP-UX 11.11 and the a format specifier in Newlib). As suggested in PR 78959, the attached patch committed in r244298 adds the { dg-require-effective-target c99_runtime } directive to make the tests conditional on support for those features. Martin PR testsuite/78960 - FAIL: gcc.dg/tree-ssa/builtin-sprintf.c execution test PR testsuite/78959 - FAIL: gcc.c-torture/execute/pr78622.c PR testsuite/78133 - Commit r241489 adds printf specifiers not supported by newlib ndex: gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c (revision 244297) +++ gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c (revision 244298) @@ -3,8 +3,10 @@ constant folding. With optimization enabled the test will fail to link if any of the assertions fails. Without optimization the test aborts at runtime if any of the assertions fails. */ -/* { dg-do run } */ -/* { dg-additional-options "-O2 -Wall -Wno-pedantic -fprintf-return-value" } */ +/* { dg-do run } + The h and hh length modifiers are a C99 feature (see PR 78959). + { dg-require-effective-target c99_runtime } + { dg-additional-options "-O2 -Wall -Wno-pedantic -fprintf-return-value" } */ #ifndef LINE # define LINE 0 Index: gcc/testsuite/gcc.dg/tree-ssa/pr78622.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/pr78622.c (revision 244297) +++ gcc/testsuite/gcc.dg/tree-ssa/pr78622.c (revision 244298) @@ -1,7 +1,9 @@ /* PR middle-end/78622 - [7 Regression] -Wformat-length/-fprintf-return-value incorrect with overflow/wrapping { dg-do compile } - { dg-options "-Wformat-length=2" } */ + { dg-options "-Wformat-length=2" } + The h and hh length modifiers are a C99 feature (see PR 78959). + { dg-require-effective-target c99_runtime } */ char buf[1];