]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
relax aarch64 stack-clash tests depedence on alloca.h
authorOlivier Hainque <hainque@adacore.com>
Wed, 8 Jan 2020 15:53:16 +0000 (15:53 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Wed, 8 Jan 2020 15:53:16 +0000 (15:53 +0000)
2020-01-06  Olivier Hainque  <hainque@adacore.com>
Alexandre Oliva  <oliva@adacore.com>

* gcc.target/aarch64/stack-check-alloca.h: Remove
#include alloca.h. #define alloca __builtin_alloca
instead.
* gcc.target/aarch64/stack-check-alloca-1.c: Add
{ dg-require-effective-target alloca }.
* gcc.target/aarch64/stack-check-alloca-2.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-3.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-4.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-5.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-6.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-7.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-8.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-9.c: Likewise.
* gcc.target/aarch64/stack-check-alloca-10.c: Likewise.

Co-Authored-By: Alexandre Oliva <oliva@adacore.com>
From-SVN: r280010

12 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-1.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-10.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-2.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-3.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-4.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-5.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-6.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-7.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-8.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca-9.c
gcc/testsuite/gcc.target/aarch64/stack-check-alloca.h

index 972bb6d155df92e18f58547f94d70958902be8c6..63ba12d86862ccdfbc5236a23d39e1d30762382f 100644 (file)
@@ -1,3 +1,21 @@
+2020-01-08  Olivier Hainque  <hainque@adacore.com>
+            Alexandre Oliva  <oliva@adacore.com>
+
+       * gcc.target/aarch64/stack-check-alloca.h: Remove
+       #include alloca.h. #define alloca __builtin_alloca
+       instead.
+       * gcc.target/aarch64/stack-check-alloca-1.c: Add
+       { dg-require-effective-target alloca }.
+       * gcc.target/aarch64/stack-check-alloca-2.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-3.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-4.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-5.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-6.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-7.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-8.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-9.c: Likewise.
+       * gcc.target/aarch64/stack-check-alloca-10.c: Likewise.
+
 2020-01-08  Martin Liska  <mliska@suse.cz>
 
        * gcc.dg/ipa/ipa-icf-1.c: Update expected scanned output.
index 7fc189f6210d97fe87af489f11c94a7a98c9ac94..e963ee66d36cac0e0143313139fe5fab7124fb3e 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE y
 #include "stack-check-alloca.h"
index 7c42206d3158d624815a5cc13b2e619c4a432dda..eb85843565d3d3569f7fdfc664b80c5d6a79995f 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 127.5 * 64 * 1024
 #include "stack-check-alloca.h"
index 69fdd16e35a296276acaf76bb0e0954ffba5a421..cc8216d2312809e43c115a74ffbba3e57b55d538 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 0
 #include "stack-check-alloca.h"
index fba3a7a25b726558d4167f3d71c9490d1c89225d..f5e51fa4dc85a5327d57ef0067b9885980fb063d 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 100
 #include "stack-check-alloca.h"
index d53f30a4133b7b2af74823d87ce88ff0d2116550..c903f4d99983acf035abdd68e1de99a7372fdead 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 2 * 1024
 #include "stack-check-alloca.h"
index e0ff99ffbe1504d28aff314eeefdcac027321c5d..691ec23f89fc83c77b9adb812842b2dc0ef2b921 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 63 * 1024
 #include "stack-check-alloca.h"
index c4bad9a2f46b405a7f01a71733f4534c66515742..9e4af23ae24e7c410200fce4b4f9e2ba9ddb89fa 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 63.5 * 1024
 #include "stack-check-alloca.h"
index cba9ff89c1a41da1f6b439239114b25351cab1d0..f0ce2d8bd776d2c8cd235ff1dcd77c01e5d00634 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 64 * 1024
 #include "stack-check-alloca.h"
index 5a35411b34483231bd05859b963a031d0011ad2b..caaab04df52e539cf6a46fd8ac54fd3ae37fc6e4 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 65 * 1024
 #include "stack-check-alloca.h"
index 5773d8052bc2d89842ad591b12807056a0247ac5..2c42e8581009acc3965519faf55681dd792e694e 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target alloca } */
 
 #define SIZE 127 * 64 * 1024
 #include "stack-check-alloca.h"
index a4f7fa2dd351cc7b76784103fc645a066c5ba6e3..8c75f6c0f703ef3d661309fddf046e0f89e4b58d 100644 (file)
@@ -1,4 +1,6 @@
-#include <alloca.h>
+
+/* Avoid inclusion of alloca.h, unavailable on some systems.  */
+#define alloca __builtin_alloca
 
 __attribute__((noinline, noipa))
 void g (char* ptr, int y)
@@ -10,4 +12,4 @@ void f_caller (int y)
 {
   char* pStr = alloca(SIZE);
   g (pStr, y);
-}
\ No newline at end of file
+}