From patchwork Tue Feb 8 09:03:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 50910 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 807283858422 for ; Tue, 8 Feb 2022 09:04:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 807283858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1644311056; bh=hmuvbUMAeR/HEp6/eMGIdSGTry2wQdW7q4njwC4xDU8=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=OiGyDPBnZEculJjsua8o0kC9rK3gWJjshtKED+SWCqgO+40RjTjIO/xONt69dqt3F OqI8GKoqr+scdxjV/SGYd9CoKN1KgMAY+dojtMQCUMZAB+emiESutbEzRantaINNTd KMH3F0mZiZX0ZcWGNBXbIArgShohPWremTMM8at4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id A6DB83858424 for ; Tue, 8 Feb 2022 09:03:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A6DB83858424 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CF1AD1F391 for ; Tue, 8 Feb 2022 09:03:32 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BD12A13BD9 for ; Tue, 8 Feb 2022 09:03:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id h/vbLOQxAmIRUAAAMHmgww (envelope-from ) for ; Tue, 08 Feb 2022 09:03:32 +0000 Date: Tue, 8 Feb 2022 10:03:31 +0100 To: gcc-patches@gcc.gnu.org Subject: [committed][testsuite] Require c99_runtime to run builtin-sprintf.c Message-ID: <20220208090329.GA26141@delia.home> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom de Vries via Gcc-patches From: Tom de Vries Reply-To: Tom de Vries Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Hi, On nvptx, I run into an execution failure in test-case gcc.dg/tree-ssa/builtin-sprintf.c because the test-case uses the 'hh' modifier. The port uses newlib, which does by default not support that modifier. There's a configure option --enable-newlib-io-c99-formats to enable this support, but that requires alloca support, which nvptx doesn't have. Fix this by requiring c99_runtime for running the test-case. Tested on nvptx. Committed to trunk. Thanks, - Tom [testsuite] Require c99_runtime to run builtin-sprintf.c gcc/testsuite/ChangeLog: 2022-02-07 Tom de Vries * gcc.dg/tree-ssa/builtin-sprintf.c: Require c99_runtime for dg-do run. --- gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c index f90558e9b7e..9368a2e0e50 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c @@ -3,7 +3,8 @@ 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-do run { target c99_runtime } } */ +/* { dg-do link { target { ! c99_runtime } } } */ /* { dg-skip-if "not IEEE float layout" { "pdp11-*-*" } } */ /* { dg-additional-options "-O2 -Wall -Wno-pedantic -fprintf-return-value" } */