public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7093] [testsuite] Require c99_runtime to run builtin-sprintf.c
@ 2022-02-08 9:01 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-02-08 9:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f05cc4fd6f0f52b8629ed6f7c068b5b2de7fa627
commit r12-7093-gf05cc4fd6f0f52b8629ed6f7c068b5b2de7fa627
Author: Tom de Vries <tdevries@suse.de>
Date: Mon Feb 7 14:45:12 2022 +0100
[testsuite] Require c99_runtime to run builtin-sprintf.c
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.
gcc/testsuite/ChangeLog:
2022-02-07 Tom de Vries <tdevries@suse.de>
* gcc.dg/tree-ssa/builtin-sprintf.c: Require c99_runtime for
dg-do run.
Diff:
---
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" } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-08 9:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08 9:01 [gcc r12-7093] [testsuite] Require c99_runtime to run builtin-sprintf.c Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).