]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Do not restrict stack protector tests to native testing
authorJoseph Myers <josmyers@redhat.com>
Tue, 6 Jan 2026 22:11:20 +0000 (22:11 +0000)
committerJoseph Myers <josmyers@redhat.com>
Tue, 6 Jan 2026 22:11:20 +0000 (22:11 +0000)
Three stack protector tests in gcc.dg use

/* { dg-do run { target native } } */

for no apparent reason, since there is nothing in those tests that
should care about the difference between native and cross testing.
They also have

/* { dg-require-effective-target fstack_protector } */

which is the actually relevant condition for such tests.  Remove the
{ target native } restriction.

Tested natively for x86_64-pc-linux-gnu, and with cross to
aarch64-linux.

* gcc.dg/ssp-1.c, gcc.dg/ssp-2.c, gcc.dg/stackprotectexplicit1.c:
Do not restrict to { target native }.

gcc/testsuite/gcc.dg/ssp-1.c
gcc/testsuite/gcc.dg/ssp-2.c
gcc/testsuite/gcc.dg/stackprotectexplicit1.c

index db693327f701e73f6b0a824bb298680b3651d871..74cdb96049c96daa3e9cad7b5be3ab3703e47549 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { target native } } */
+/* { dg-do run } */
 /* { dg-options "-fstack-protector" } */
 /* { dg-require-effective-target fstack_protector } */
 
index 608ca300032391c2ac0ac7dfa8c510b61fc8d90d..22f31d9940811de0275cd0a0f10db8cb6a7dd8a6 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { target native } } */
+/* { dg-do run } */
 /* { dg-options "-fstack-protector" } */
 /* { dg-options "-fstack-protector -Wl,-multiply_defined,suppress" { target *-*-darwin* } } */
 /* { dg-prune-output "-multiply_defined is obsolete" } */
index 658c297d9f58e74f56309a6f97fa623700d04817..bb59b7fadd1f98df9b61cad2aeb3665e06db0ccd 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { target native } } */
+/* { dg-do run } */
 /* { dg-options "-fstack-protector-explicit" } */
 /* { dg-require-effective-target fstack_protector } */