]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nvptx: Re-enable "Stack alignment causes use of alloca" test cases
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 28 Nov 2022 09:37:26 +0000 (10:37 +0100)
committerThomas Schwinge <tschwinge@baylibre.com>
Wed, 8 Jan 2025 14:26:25 +0000 (15:26 +0100)
These generally PASS nowadays, without requiring 'alloca'.

There were two exceptions: 'gcc.dg/torture/stackalign/pr16660-2.c',
'gcc.dg/torture/stackalign/pr16660-3.c', where variants specifying
'-O0' or '-fpic' FAILed with 'ptxas' of, for example, CUDA 10.0 due to:

    nvptx-as: ptxas terminated with signal 11 [Segmentation fault], core dumped

That however is gone with 'ptxas' of, for example, CUDA 11.5 and later.

gcc/testsuite/
* gcc.dg/torture/stackalign/global-1.c: Re-enable for nvptx.
* gcc.dg/torture/stackalign/inline-1.c: Likewise.
* gcc.dg/torture/stackalign/nested-1.c: Likewise.
* gcc.dg/torture/stackalign/nested-2.c: Likewise.
* gcc.dg/torture/stackalign/nested-4.c: Likewise.
* gcc.dg/torture/stackalign/pr16660-1.c: Likewise.
* gcc.dg/torture/stackalign/pr16660-2.c: Likewise.
* gcc.dg/torture/stackalign/pr16660-3.c: Likewise.
* gcc.dg/torture/stackalign/ret-struct-1.c: Likewise.
* gcc.dg/torture/stackalign/struct-1.c: Likewise.

gcc/testsuite/gcc.dg/torture/stackalign/global-1.c
gcc/testsuite/gcc.dg/torture/stackalign/inline-1.c
gcc/testsuite/gcc.dg/torture/stackalign/nested-1.c
gcc/testsuite/gcc.dg/torture/stackalign/nested-2.c
gcc/testsuite/gcc.dg/torture/stackalign/nested-4.c
gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c
gcc/testsuite/gcc.dg/torture/stackalign/pr16660-2.c
gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c
gcc/testsuite/gcc.dg/torture/stackalign/ret-struct-1.c
gcc/testsuite/gcc.dg/torture/stackalign/struct-1.c

index 66bec64a0f5898504f2085475d2398560768b630..a7cbfa74d1650623eee95cb3e7cedc91a48c22ad 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index 912581e9ca845b529da9a57be2ade3be9dcd1ead..6aed4398cb19f076fa32e9e7fefca79d89f1eff9 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index ae9047e783d927126c20af1d07cb61e24e4e94d1..25343757c9ce61b010317a52aca0845c078c611b 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index d083d6695b117e64aeeceff85370cdc32382d3d8..397a34fb661f6fc4810b40c006e337e5dc9b4251 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index a46104b9df0a8f07271378328f9ddfddae08b709..4d18ba9ad397ca843236e72251f184e0431a7507 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
+/* { dg-require-effective-target nonlocal_goto } */
 
 #include "check.h"
 
index 459b3df26964a63412f0823cbbc0cf2216cb978c..3818e5c32cd6340d09b0b509901994596c65c7a2 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index 2aaff40010910a5dc0c2d195515539ce75da2518..9a039eb2bf50f33c8258fc45d9e45a0807ed5749 100644 (file)
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index ceb626682f895793a2fc8930cd623b2326c80dd3..1c1ddd1dd74c48e0ba84baf2a4bf0fddc1bc245c 100644 (file)
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index ff0488dc956cea537abebb2bbae5c83b5d6604a4..e56def4e7c3aa793eb5e1da4c11c801adac38026 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"
 
index 4e9796f7826f5735280886454d47cff9028abd31..12262ebbe692704aa407d22eeaf62d240f5cefd6 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
 
 #include "check.h"