Turn test cases into UNSUPPORTED if running into 'sorry, unimplemented: dynamic stack allocation not supported' (was: [1/6] nvptx testsuite patches: alloca)
Thomas Schwinge
tschwinge@baylibre.com
Sat Feb 22 22:04:15 GMT 2025
Hi!
On 2014-10-21T16:12:24+0200, Bernd Schmidt <bernds@codesourcery.com> wrote:
> This deals with uses of alloca in the testsuite. Some tests require it
> outright, others only at -O0, and others require it implicitly [...]
> --- gcc/testsuite/lib/target-supports.exp.orig
> +++ gcc/testsuite/lib/target-supports.exp
> +# Return 1 if alloca is supported, 0 otherwise.
> +
> +proc check_effective_target_alloca {} {
> + if { [istarget nvptx-*-*] } {
> + return 0
> + }
> + return 1
> +}
> --- gcc/testsuite/gcc.c-torture/execute/20010209-1.c.orig
> +++ gcc/testsuite/gcc.c-torture/execute/20010209-1.c
> @@ -1,3 +1,4 @@
> +/* { dg-require-effective-target alloca } */
> [...]
..., and many more got added right away, and yet more over the course of
the last decade. And still we've got FAILs due to missing
effective-target 'alloca' annotations, and we've got PASSes suppressed by
UNSUPPORTED due to unneeded (or, no longer needed) effective-target
'alloca' annotations.
Pushed to trunk branch commit 0128fa8b41498d8822451d98149c6357e6ab8074
"Turn test cases into UNSUPPORTED if running into 'sorry, unimplemented: dynamic stack allocation not supported'",
see attached.
Grüße
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Turn-test-cases-into-UNSUPPORTED-if-running-into-sor.patch
Type: text/x-diff
Size: 219579 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250222/f5ac2956/attachment-0001.bin>
More information about the Libstdc++
mailing list