diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2025-03-12 22:22:45 +0200 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2025-04-23 21:35:05 +0300 |
commit | 1fa48e78ad8e4259b59395d6d161d3e53bd0b419 (patch) | |
tree | 59a9899e74fa0f26320d5d596785fc5fb1f14ce6 /gcc | |
parent | 132d01d96ea9d617aaffdd5dfba3284a8958e529 (diff) | |
download | gcc-1fa48e78ad8e4259b59395d6d161d3e53bd0b419.zip gcc-1fa48e78ad8e4259b59395d6d161d3e53bd0b419.tar.gz gcc-1fa48e78ad8e4259b59395d6d161d3e53bd0b419.tar.bz2 |
testsuite: Require fstack_protector for no-stack-protector-attr-3.C
The test fails on pru-unknown-elf with:
cc1plus: warning: '-fstack-protector' not supported for this target
Even though the compiled functions have the feature disabled using an
attribute, the command line option is still not supported by some targets.
Tested x86_64-pc-linux-gnu and ensured that g++.sum is the same with and
without this patch.
gcc/testsuite/ChangeLog:
* g++.dg/no-stack-protector-attr-3.C: Require effective target
fstack_protector.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/no-stack-protector-attr-3.C | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C b/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C index 147c2b7..b858d70 100644 --- a/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C +++ b/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C @@ -6,6 +6,7 @@ /* { dg-additional-options "-fno-PIE" { target ia32 } } */ /* { dg-do compile { target { ! hppa*-*-* } } } */ +/* { dg-require-effective-target fstack_protector } */ int __attribute__((no_stack_protector)) foo() { |