]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit531150b1ac41a6aebfa39dec28730c9f3b10a930
treeb2111d091f79b1b84b0b4076f44a586245775ad9
parent384c6aef8b5d0378444ea23ea4b85556ed524986
testsuite: Do not restrict stack protector tests to native testing

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