]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Require effective target fstack_protector for pr124041.c
authorDimitar Dimitrov <dimitar@dinux.eu>
Sat, 28 Mar 2026 09:19:00 +0000 (11:19 +0200)
committerDimitar Dimitrov <dimitar@dinux.eu>
Tue, 31 Mar 2026 18:43:16 +0000 (21:43 +0300)
Fix this spurious error on targets without stack protection ability:
  FAIL: gcc.dg/torture/pr124041.c   -O0  (test for excess errors)
  Excess errors:
  cc1: warning: '-fstack-protector' not supported for this target

gcc/testsuite/ChangeLog:

* gcc.dg/torture/pr124041.c: Require effective target
fstack_protector.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/torture/pr124041.c

index f966757e4b5dc908aa690b21057a5abd513e8112..722363cbc9bba15529575b474bc505b0d59b30b4 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-compile } */
 /* { dg-additional-options "-O2  -fno-strict-aliasing -fstack-protector -ftrivial-auto-var-init=zero -fsanitize=thread -Wall" } */
+/* { dg-require-effective-target fstack_protector } */
 
 char *trick_compiler(void *);
 int do_usercopy_stack_callee_i;