diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-22 15:09:03 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-22 15:09:03 +0000 |
commit | 81654444c50bd98201fd1edcd57c420862b0c548 (patch) | |
tree | 65184cb52f754cb52b1071ce6e2f9773dd03c9c7 | |
parent | af9de21dcba9c32d110d83213caefbdb26c4e016 (diff) | |
download | gcc-81654444c50bd98201fd1edcd57c420862b0c548.tar.gz |
* c-c++-common/Wsizeof-pointer-memaccess1.c: Require alloca.
* c-c++-common/Wsizeof-pointer-memaccess2.c: Likewise.
* c-c++-common/Wunused-var-8.c: Likewise.
* c-c++-common/gomp/pr61486-2.c: Likewise.
* c-c++-common/Wunused-var-6.c: Likewise.
* c-c++-common/goacc/reduction-1.c: Likewise.
* c-c++-common/goacc/reduction-2.c: Likewise.
* c-c++-common/goacc/reduction-3.c: Likewise.
* c-c++-common/goacc/reduction-4.c: Likewise.
* gcc.dg/builtins-64.c: Likewise.
* gcc.dg/pr59523.c: Likewise.
* gcc.dg/tree-ssa/20080530.c: Likewise.
* gcc.dg/tree-ssa/pr23848-2.c: Likewise.
* gcc.dg/tree-ssa/pr23848-4.c: Likewise.
* gcc.dg/tree-ssa/pr23848-1.c: Likewise.
* gcc.dg/tree-ssa/pr23848-3.c: Likewise.
* gcc.dg/tree-ssa/20030807-2.c: Likewise.
* gcc.dg/pr59011.c: Likewise.
* gcc.dg/uninit-9.c: Likewise.
* gcc.dg/pr61561.c: Likewise.
* gcc.dg/vla-4.c: Likewise.
* gcc.dg/20101010-1.c: Likewise.
* gcc.dg/pr49120.c: Likewise.
* gcc.dg/20030331-2.c: Likewise.
* gcc.dg/compat/struct-by-value-22_main.c: Likewise.
* gcc.dg/pr25682.c: Likewise.
* gcc.dg/guality/guality.c: Likewise.
* gcc.dg/pr27301.c: Likewise.
* gcc.dg/uninit-9-O0.c: Likewise.
* gcc.dg/fold-alloca-1.c: Likewise.
* gcc.dg/pr41470.c: Likewise.
* gcc.dg/pr51491-2.c: Likewise.
* gcc.dg/winline-7.c: Likewise.
* gcc.dg/vla-2.c: Likewise.
* gcc.dg/pr50764.c: Likewise.
* gcc.dg/c99-vla-1.c: Likewise.
* gcc.dg/pr33238.c: Likewise.
* gcc.dg/c99-const-expr-13.c: Likewise.
* gcc.dg/builtin-return-1.c: Likewise.
* gcc.dg/vla-3.c: Likewise.
* gcc.dg/20020415-1.c: Likewise.
* gcc.dg/Wsizeof-pointer-memaccess1.c: Likewise.
* gcc.dg/shrink-wrap-alloca.c: Likewise.
* gcc.dg/Wstrict-aliasing-bogus-vla-1.c: Likewise.
* gcc.dg/torture/calleesave-sse.c: Likewise.
* gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Likewise.
* gcc.dg/gomp/vla-2.c: Likewise.
* gcc.dg/gomp/vla-3.c: Likewise.
* gcc.dg/gomp/vla-4.c: Likewise.
* gcc.dg/gomp/pr30494.c: Likewise.
* gcc.dg/gomp/vla-5.c: Likewise.
* gcc.dg/pr51990-2.c: Likewise.
* gcc.dg/vla-22.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227097 138bc75d-0d04-0410-961f-82ee72b054a4
54 files changed, 109 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ba2444dd24f..da245386899 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,59 @@ +2015-08-22 Nathan Sidwell <nathan@acm.org> + + * c-c++-common/Wsizeof-pointer-memaccess1.c: Require alloca. + * c-c++-common/Wsizeof-pointer-memaccess2.c: Likewise. + * c-c++-common/Wunused-var-8.c: Likewise. + * c-c++-common/gomp/pr61486-2.c: Likewise. + * c-c++-common/Wunused-var-6.c: Likewise. + * c-c++-common/goacc/reduction-1.c: Likewise. + * c-c++-common/goacc/reduction-2.c: Likewise. + * c-c++-common/goacc/reduction-3.c: Likewise. + * c-c++-common/goacc/reduction-4.c: Likewise. + * gcc.dg/builtins-64.c: Likewise. + * gcc.dg/pr59523.c: Likewise. + * gcc.dg/tree-ssa/20080530.c: Likewise. + * gcc.dg/tree-ssa/pr23848-2.c: Likewise. + * gcc.dg/tree-ssa/pr23848-4.c: Likewise. + * gcc.dg/tree-ssa/pr23848-1.c: Likewise. + * gcc.dg/tree-ssa/pr23848-3.c: Likewise. + * gcc.dg/tree-ssa/20030807-2.c: Likewise. + * gcc.dg/pr59011.c: Likewise. + * gcc.dg/uninit-9.c: Likewise. + * gcc.dg/pr61561.c: Likewise. + * gcc.dg/vla-4.c: Likewise. + * gcc.dg/20101010-1.c: Likewise. + * gcc.dg/pr49120.c: Likewise. + * gcc.dg/20030331-2.c: Likewise. + * gcc.dg/compat/struct-by-value-22_main.c: Likewise. + * gcc.dg/pr25682.c: Likewise. + * gcc.dg/guality/guality.c: Likewise. + * gcc.dg/pr27301.c: Likewise. + * gcc.dg/uninit-9-O0.c: Likewise. + * gcc.dg/fold-alloca-1.c: Likewise. + * gcc.dg/pr41470.c: Likewise. + * gcc.dg/pr51491-2.c: Likewise. + * gcc.dg/winline-7.c: Likewise. + * gcc.dg/vla-2.c: Likewise. + * gcc.dg/pr50764.c: Likewise. + * gcc.dg/c99-vla-1.c: Likewise. + * gcc.dg/pr33238.c: Likewise. + * gcc.dg/c99-const-expr-13.c: Likewise. + * gcc.dg/builtin-return-1.c: Likewise. + * gcc.dg/vla-3.c: Likewise. + * gcc.dg/20020415-1.c: Likewise. + * gcc.dg/Wsizeof-pointer-memaccess1.c: Likewise. + * gcc.dg/shrink-wrap-alloca.c: Likewise. + * gcc.dg/Wstrict-aliasing-bogus-vla-1.c: Likewise. + * gcc.dg/torture/calleesave-sse.c: Likewise. + * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Likewise. + * gcc.dg/gomp/vla-2.c: Likewise. + * gcc.dg/gomp/vla-3.c: Likewise. + * gcc.dg/gomp/vla-4.c: Likewise. + * gcc.dg/gomp/pr30494.c: Likewise. + * gcc.dg/gomp/vla-5.c: Likewise. + * gcc.dg/pr51990-2.c: Likewise. + * gcc.dg/vla-22.c: Likewise. + 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> * gcc.dg/cpp/multiline-2.c: Add column numbers. diff --git a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c index 27c5da426bd..7861bb082cd 100644 --- a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c +++ b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c @@ -2,6 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-Wall -Wno-sizeof-array-argument" } */ /* { dg-options "-Wall -Wno-sizeof-array-argument -Wno-c++-compat" { target c } } */ +/* { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; #ifdef __cplusplus diff --git a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c index e067d7d44e9..d9ec7e2cace 100644 --- a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c +++ b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c @@ -2,6 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-Wall -O2 -Wno-sizeof-array-argument" } */ /* { dg-options "-Wall -O2 -Wno-sizeof-array-argument -Wno-c++-compat" {target c} } */ +/* { dg-require-effective-target alloca } */ #define bos(ptr) __builtin_object_size (ptr, 1) #define bos0(ptr) __builtin_object_size (ptr, 0) diff --git a/gcc/testsuite/c-c++-common/Wunused-var-6.c b/gcc/testsuite/c-c++-common/Wunused-var-6.c index 1217719a298..12a7dddc00d 100644 --- a/gcc/testsuite/c-c++-common/Wunused-var-6.c +++ b/gcc/testsuite/c-c++-common/Wunused-var-6.c @@ -1,6 +1,7 @@ /* PR c/43981 */ /* { dg-do compile } */ /* { dg-options "-Wunused" } */ +/* { dg-require-effective-target alloca } */ void g (char *); diff --git a/gcc/testsuite/c-c++-common/Wunused-var-8.c b/gcc/testsuite/c-c++-common/Wunused-var-8.c index 0923b355662..8c49ed2fa5c 100644 --- a/gcc/testsuite/c-c++-common/Wunused-var-8.c +++ b/gcc/testsuite/c-c++-common/Wunused-var-8.c @@ -1,6 +1,7 @@ /* Origin: PR c++/44108 */ /* { dg-options "-Wunused" } */ /* { dg-do compile } */ +/* { dg-require-effective-target alloca } */ int foo () diff --git a/gcc/testsuite/c-c++-common/goacc/reduction-1.c b/gcc/testsuite/c-c++-common/goacc/reduction-1.c index 0f500829831..de97125b4cf 100644 --- a/gcc/testsuite/c-c++-common/goacc/reduction-1.c +++ b/gcc/testsuite/c-c++-common/goacc/reduction-1.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target alloca } */ /* Integer reductions. */ #define vl 32 diff --git a/gcc/testsuite/c-c++-common/goacc/reduction-2.c b/gcc/testsuite/c-c++-common/goacc/reduction-2.c index 1f95138ff0b..2964236f6c6 100644 --- a/gcc/testsuite/c-c++-common/goacc/reduction-2.c +++ b/gcc/testsuite/c-c++-common/goacc/reduction-2.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target alloca } */ /* float reductions. */ #define vl 32 diff --git a/gcc/testsuite/c-c++-common/goacc/reduction-3.c b/gcc/testsuite/c-c++-common/goacc/reduction-3.c index 476e375c654..34c51c2505a 100644 --- a/gcc/testsuite/c-c++-common/goacc/reduction-3.c +++ b/gcc/testsuite/c-c++-common/goacc/reduction-3.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target alloca } */ /* double reductions. */ #define vl 32 diff --git a/gcc/testsuite/c-c++-common/goacc/reduction-4.c b/gcc/testsuite/c-c++-common/goacc/reduction-4.c index 73dde869a9d..328c0d4e27b 100644 --- a/gcc/testsuite/c-c++-common/goacc/reduction-4.c +++ b/gcc/testsuite/c-c++-common/goacc/reduction-4.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target alloca } */ /* complex reductions. */ #define vl 32 diff --git a/gcc/testsuite/c-c++-common/gomp/pr61486-2.c b/gcc/testsuite/c-c++-common/gomp/pr61486-2.c index 729438101e2..55332717246 100644 --- a/gcc/testsuite/c-c++-common/gomp/pr61486-2.c +++ b/gcc/testsuite/c-c++-common/gomp/pr61486-2.c @@ -1,6 +1,7 @@ /* PR middle-end/61486 */ /* { dg-do compile } */ /* { dg-options "-fopenmp" } */ +/* { dg-require-effective-target alloca } */ #pragma omp declare target void dosomething (int *a, int n, int m); diff --git a/gcc/testsuite/gcc.dg/20020415-1.c b/gcc/testsuite/gcc.dg/20020415-1.c index 7d5b5aebdea..d0b64390718 100644 --- a/gcc/testsuite/gcc.dg/20020415-1.c +++ b/gcc/testsuite/gcc.dg/20020415-1.c @@ -1,6 +1,7 @@ /* PR target/6303 This testcase ICEd because s390 did not define ASM_SIMPLIFY_DWARF_ADDR hook. */ +/* { dg-require-effective-target alloca } */ /* { dg-do compile { target fpic } } */ /* { dg-options "-O2 -fpic -g" } */ diff --git a/gcc/testsuite/gcc.dg/20030331-2.c b/gcc/testsuite/gcc.dg/20030331-2.c index 2fce78ea97c..5dc164fc4fe 100644 --- a/gcc/testsuite/gcc.dg/20030331-2.c +++ b/gcc/testsuite/gcc.dg/20030331-2.c @@ -1,4 +1,5 @@ // { dg-options "" } +/* { dg-require-effective-target alloca } */ extern int printf (const char *, ...); diff --git a/gcc/testsuite/gcc.dg/20101010-1.c b/gcc/testsuite/gcc.dg/20101010-1.c index cd8fddf62d2..2067012ebcd 100644 --- a/gcc/testsuite/gcc.dg/20101010-1.c +++ b/gcc/testsuite/gcc.dg/20101010-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-crossjumping" } */ +/* { dg-require-effective-target alloca } */ int bar1 (); int bar2 (); diff --git a/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c b/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c index 66be5a5c4b2..ebdef690879 100644 --- a/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c +++ b/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c @@ -1,6 +1,7 @@ /* Test -Wsizeof-pointer-memaccess warnings. */ /* { dg-do compile } */ /* { dg-options "-Wall -Wno-sizeof-array-argument" } */ +/* { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; extern void bzero (void *, size_t); diff --git a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c index e9f63d36872..87f5ef9d171 100644 --- a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c +++ b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c @@ -1,6 +1,7 @@ /* PR 41673: bogus -Wstrict-aliasing warning from VLA dereference. */ /* { dg-do compile } */ /* { dg-options "-std=gnu99 -O2 -Wall" } */ +/* { dg-require-effective-target alloca } */ int main(int argc, char *argv[]) { diff --git a/gcc/testsuite/gcc.dg/builtin-return-1.c b/gcc/testsuite/gcc.dg/builtin-return-1.c index 68fd0556b3d..0aa0afd88a7 100644 --- a/gcc/testsuite/gcc.dg/builtin-return-1.c +++ b/gcc/testsuite/gcc.dg/builtin-return-1.c @@ -2,6 +2,7 @@ /* Originator: Andrew Church <gcczilla@achurch.org> */ /* { dg-do run } */ /* { dg-xfail-run-if "PR36571 untyped return is char register" { "avr-*-*" } { "*" } { "" } } */ +/* { dg-require-effective-target alloca } */ /* This used to fail on SPARC because the (undefined) return value of 'bar' was overwriting that of 'foo'. */ diff --git a/gcc/testsuite/gcc.dg/builtins-64.c b/gcc/testsuite/gcc.dg/builtins-64.c index 6e84633d591..3c04c44a677 100644 --- a/gcc/testsuite/gcc.dg/builtins-64.c +++ b/gcc/testsuite/gcc.dg/builtins-64.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target alloca } */ int main () { diff --git a/gcc/testsuite/gcc.dg/c99-const-expr-13.c b/gcc/testsuite/gcc.dg/c99-const-expr-13.c index 0ee525bec61..e477e5d162d 100644 --- a/gcc/testsuite/gcc.dg/c99-const-expr-13.c +++ b/gcc/testsuite/gcc.dg/c99-const-expr-13.c @@ -3,6 +3,7 @@ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ /* { dg-options "-std=iso9899:1999 -pedantic-errors -frounding-math" } */ +/* { dg-require-effective-target alloca } */ void f (void) diff --git a/gcc/testsuite/gcc.dg/c99-vla-1.c b/gcc/testsuite/gcc.dg/c99-vla-1.c index 4a3a0f8e238..4501852066c 100644 --- a/gcc/testsuite/gcc.dg/c99-vla-1.c +++ b/gcc/testsuite/gcc.dg/c99-vla-1.c @@ -1,6 +1,7 @@ /* Origin: PR 3467 */ /* { dg-do compile } */ /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ +/* { dg-require-effective-target alloca } */ void tdef (int n) diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c index 1fd2eba1c7f..db6ab56ab7d 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c +++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target alloca } */ /* Test variable sized function argument passing. GCC 3.2 and earlier is incompatible with GCC 3.3+ on x86-64, the latter passes variable sized arguments by reference while diff --git a/gcc/testsuite/gcc.dg/fold-alloca-1.c b/gcc/testsuite/gcc.dg/fold-alloca-1.c index 9cace17c500..733aeecca30 100644 --- a/gcc/testsuite/gcc.dg/fold-alloca-1.c +++ b/gcc/testsuite/gcc.dg/fold-alloca-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fdump-tree-cfg" } */ +/* { dg-require-effective-target alloca } */ void *alloca (__SIZE_TYPE__); void link_error (); diff --git a/gcc/testsuite/gcc.dg/gomp/pr30494.c b/gcc/testsuite/gcc.dg/gomp/pr30494.c index 6a042ce6974..fa6d7ffc696 100644 --- a/gcc/testsuite/gcc.dg/gomp/pr30494.c +++ b/gcc/testsuite/gcc.dg/gomp/pr30494.c @@ -1,5 +1,6 @@ /* PR middle-end/30494 */ /* { dg-do compile } */ +/* { dg-require-effective-target alloca } */ int foo (int n) diff --git a/gcc/testsuite/gcc.dg/gomp/vla-2.c b/gcc/testsuite/gcc.dg/gomp/vla-2.c index fc18ffc5743..ea7c652553a 100644 --- a/gcc/testsuite/gcc.dg/gomp/vla-2.c +++ b/gcc/testsuite/gcc.dg/gomp/vla-2.c @@ -1,4 +1,5 @@ // { dg-do compile } +/* { dg-require-effective-target alloca } */ void foo(int n, int i) { diff --git a/gcc/testsuite/gcc.dg/gomp/vla-3.c b/gcc/testsuite/gcc.dg/gomp/vla-3.c index b1677b833ef..5070907f1e7 100644 --- a/gcc/testsuite/gcc.dg/gomp/vla-3.c +++ b/gcc/testsuite/gcc.dg/gomp/vla-3.c @@ -1,4 +1,5 @@ // { dg-do compile } +/* { dg-require-effective-target alloca } */ void foo(int n, int i) { diff --git a/gcc/testsuite/gcc.dg/gomp/vla-4.c b/gcc/testsuite/gcc.dg/gomp/vla-4.c index 2c3c0aa43b7..e784c74058c 100644 --- a/gcc/testsuite/gcc.dg/gomp/vla-4.c +++ b/gcc/testsuite/gcc.dg/gomp/vla-4.c @@ -1,4 +1,5 @@ // { dg-do compile } +/* { dg-require-effective-target alloca } */ void foo(int n, int i) { diff --git a/gcc/testsuite/gcc.dg/gomp/vla-5.c b/gcc/testsuite/gcc.dg/gomp/vla-5.c index 6c6d5517af8..20be204a5e1 100644 --- a/gcc/testsuite/gcc.dg/gomp/vla-5.c +++ b/gcc/testsuite/gcc.dg/gomp/vla-5.c @@ -1,4 +1,5 @@ // { dg-do compile } +/* { dg-require-effective-target alloca } */ void foo(int n, int i) { diff --git a/gcc/testsuite/gcc.dg/guality/guality.c b/gcc/testsuite/gcc.dg/guality/guality.c index d5d950fcdac..db015e6a558 100644 --- a/gcc/testsuite/gcc.dg/guality/guality.c +++ b/gcc/testsuite/gcc.dg/guality/guality.c @@ -1,5 +1,6 @@ /* { dg-do run { xfail *-*-* } } */ /* { dg-options "-g" } */ +/* { dg-require-effective-target alloca } */ #include "guality.h" diff --git a/gcc/testsuite/gcc.dg/pr25682.c b/gcc/testsuite/gcc.dg/pr25682.c index e8cab1d05e5..ecf5669403d 100644 --- a/gcc/testsuite/gcc.dg/pr25682.c +++ b/gcc/testsuite/gcc.dg/pr25682.c @@ -1,6 +1,7 @@ /* PR c/25682 */ /* { dg-do compile } */ /* { dg-options "-ansi" } */ +/* { dg-require-effective-target alloca } */ /* Test whether we don't ICE on questionable constructs where offsetof should have been used instead. */ diff --git a/gcc/testsuite/gcc.dg/pr27301.c b/gcc/testsuite/gcc.dg/pr27301.c index 3b5a8f55b5d..cc55c745a03 100644 --- a/gcc/testsuite/gcc.dg/pr27301.c +++ b/gcc/testsuite/gcc.dg/pr27301.c @@ -1,6 +1,7 @@ /* PR c/27301 */ /* { dg-do compile } */ /* { dg-options "-O2 -std=gnu89" } */ +/* { dg-require-effective-target alloca } */ void foo (void *ptr, long n) diff --git a/gcc/testsuite/gcc.dg/pr33238.c b/gcc/testsuite/gcc.dg/pr33238.c index 0b399041a86..993384a186d 100644 --- a/gcc/testsuite/gcc.dg/pr33238.c +++ b/gcc/testsuite/gcc.dg/pr33238.c @@ -1,6 +1,7 @@ /* PR c/33238 */ /* { dg-do compile } */ /* { dg-options "-std=gnu89" } */ +/* { dg-require-effective-target alloca } */ void reverse (void *x, int y, int z) diff --git a/gcc/testsuite/gcc.dg/pr41470.c b/gcc/testsuite/gcc.dg/pr41470.c index ddbe66e903b..7ef00861523 100644 --- a/gcc/testsuite/gcc.dg/pr41470.c +++ b/gcc/testsuite/gcc.dg/pr41470.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fexceptions" } */ +/* { dg-require-effective-target alloca } */ void cf (void *); diff --git a/gcc/testsuite/gcc.dg/pr49120.c b/gcc/testsuite/gcc.dg/pr49120.c index 1a65222cfec..50993e69dfd 100644 --- a/gcc/testsuite/gcc.dg/pr49120.c +++ b/gcc/testsuite/gcc.dg/pr49120.c @@ -1,6 +1,7 @@ /* PR c/49120 */ /* { dg-do compile } */ /* { dg-options "-Wall" } */ +/* { dg-require-effective-target alloca } */ int main () diff --git a/gcc/testsuite/gcc.dg/pr50764.c b/gcc/testsuite/gcc.dg/pr50764.c index e3b8da8670f..e0cd320db03 100644 --- a/gcc/testsuite/gcc.dg/pr50764.c +++ b/gcc/testsuite/gcc.dg/pr50764.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fsched2-use-superblocks -ftree-tail-merge" } */ +/* { dg-require-effective-target alloca } */ typedef int aligned __attribute__ ((aligned (64))); extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/pr51491-2.c b/gcc/testsuite/gcc.dg/pr51491-2.c index f2dc8df028d..429ee4e5914 100644 --- a/gcc/testsuite/gcc.dg/pr51491-2.c +++ b/gcc/testsuite/gcc.dg/pr51491-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-ccp1" } */ +/* { dg-require-effective-target alloca } */ int g (int *); diff --git a/gcc/testsuite/gcc.dg/pr51990-2.c b/gcc/testsuite/gcc.dg/pr51990-2.c index 1ced0a833a8..702bab91357 100644 --- a/gcc/testsuite/gcc.dg/pr51990-2.c +++ b/gcc/testsuite/gcc.dg/pr51990-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ +/* { dg-require-effective-target alloca } */ int y; extern int foo (int, ...) __attribute__((pure)); diff --git a/gcc/testsuite/gcc.dg/pr59011.c b/gcc/testsuite/gcc.dg/pr59011.c index 2fb8187ad55..b0d6c0f30a1 100644 --- a/gcc/testsuite/gcc.dg/pr59011.c +++ b/gcc/testsuite/gcc.dg/pr59011.c @@ -1,6 +1,7 @@ /* PR middle-end/59011 */ /* { dg-do compile } */ /* { dg-options "-std=gnu99" } */ +/* { dg-require-effective-target alloca } */ void foo (int m) diff --git a/gcc/testsuite/gcc.dg/pr59523.c b/gcc/testsuite/gcc.dg/pr59523.c index b523eaea8a1..a6c3302a683 100644 --- a/gcc/testsuite/gcc.dg/pr59523.c +++ b/gcc/testsuite/gcc.dg/pr59523.c @@ -2,6 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-O3" } */ /* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target alloca } */ int * foo (int a, int *b, int *c, int *d) diff --git a/gcc/testsuite/gcc.dg/pr61561.c b/gcc/testsuite/gcc.dg/pr61561.c index 1512f20e3d0..47d0ff0b818 100644 --- a/gcc/testsuite/gcc.dg/pr61561.c +++ b/gcc/testsuite/gcc.dg/pr61561.c @@ -1,6 +1,7 @@ /* PR c/61561. */ /* { dg-do assemble } */ /* { dg-options " -w -O2" } */ +/* { dg-require-effective-target alloca } */ int dummy (int a); diff --git a/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c b/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c index fbe6f4fd20d..b9a2af1c51b 100644 --- a/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c +++ b/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -g" } */ +/* { dg-require-effective-target alloca } */ int *p; diff --git a/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c b/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c index a82f4efbdaf..7ce9eaeb261 100644 --- a/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c +++ b/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c @@ -4,6 +4,7 @@ /* Test just twice, once with -O0 non-fortified, once with -O2 fortified. */ /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" "-O2" } } */ /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ +/* { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; extern void *memset (void *, int, size_t); diff --git a/gcc/testsuite/gcc.dg/torture/calleesave-sse.c b/gcc/testsuite/gcc.dg/torture/calleesave-sse.c index 292791c7259..76db20ef67c 100644 --- a/gcc/testsuite/gcc.dg/torture/calleesave-sse.c +++ b/gcc/testsuite/gcc.dg/torture/calleesave-sse.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fno-omit-frame-pointer" } */ +/* { dg-require-effective-target alloca } */ #define alloca __builtin_alloca extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c index 259932480a1..0712922b363 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */ +/* { dg-require-effective-target alloca } */ extern void abort (void); extern void bitmap_clear (int *); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20080530.c b/gcc/testsuite/gcc.dg/tree-ssa/20080530.c index 8583574266e..c472f8167a0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20080530.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20080530.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-einline" } */ +/* { dg-require-effective-target alloca } */ void bar (char *); int i; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c index c80ed85e830..8836ab22972 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c @@ -1,6 +1,7 @@ /* PR middle-end/23848 */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-require-effective-target alloca } */ void bar1 (char *, int); void foo1 (int size) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c index cdbf7b00031..7b5be75bf83 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c @@ -1,6 +1,7 @@ /* PR middle-end/23848 */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-require-effective-target alloca } */ void bar (char *, char *, char *, char *, int); void foo (int size) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c index 3232f3447f9..ed3541e22e0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c @@ -1,6 +1,7 @@ /* PR middle-end/23848 */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-require-effective-target alloca } */ void bar (int, char *, char *, char *, char *, int); void foo (int size) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c index f32e8fab861..0f7948c3e14 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c @@ -1,6 +1,7 @@ /* PR middle-end/23848 */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-require-effective-target alloca } */ void bar (char *, char *, char *, char *, int); void foo (int size) diff --git a/gcc/testsuite/gcc.dg/uninit-9-O0.c b/gcc/testsuite/gcc.dg/uninit-9-O0.c index 493dd68d908..ac24e7a8362 100644 --- a/gcc/testsuite/gcc.dg/uninit-9-O0.c +++ b/gcc/testsuite/gcc.dg/uninit-9-O0.c @@ -3,6 +3,7 @@ /* { dg-do compile } */ /* { dg-options "-Wuninitialized" } */ +/* { dg-require-effective-target alloca } */ struct foo { diff --git a/gcc/testsuite/gcc.dg/uninit-9.c b/gcc/testsuite/gcc.dg/uninit-9.c index 2a8ccb69f32..d1af7328a96 100644 --- a/gcc/testsuite/gcc.dg/uninit-9.c +++ b/gcc/testsuite/gcc.dg/uninit-9.c @@ -3,6 +3,7 @@ /* { dg-do compile } */ /* { dg-options "-O -Wuninitialized" } */ +/* { dg-require-effective-target alloca } */ struct foo { diff --git a/gcc/testsuite/gcc.dg/vla-2.c b/gcc/testsuite/gcc.dg/vla-2.c index 72c64659030..e6ddcccfb4b 100644 --- a/gcc/testsuite/gcc.dg/vla-2.c +++ b/gcc/testsuite/gcc.dg/vla-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-std=gnu99" } */ +/* { dg-require-effective-target alloca } */ /* These are crash tests related to PR middle-end/6994; see also g++.dg/ext/vla1.C. Note that at present A and C cannot be inlined. */ diff --git a/gcc/testsuite/gcc.dg/vla-22.c b/gcc/testsuite/gcc.dg/vla-22.c index f924650af03..8025bae8f6f 100644 --- a/gcc/testsuite/gcc.dg/vla-22.c +++ b/gcc/testsuite/gcc.dg/vla-22.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ +/* { dg-require-effective-target alloca } */ extern void bar (int *); diff --git a/gcc/testsuite/gcc.dg/vla-3.c b/gcc/testsuite/gcc.dg/vla-3.c index 619c0422a4d..51dae42f7ec 100644 --- a/gcc/testsuite/gcc.dg/vla-3.c +++ b/gcc/testsuite/gcc.dg/vla-3.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-std=gnu99" } */ +/* { dg-require-effective-target alloca } */ /* This used to crash as we did not preserve the correct type for __SIZE_TYPE__. See PR22439. */ diff --git a/gcc/testsuite/gcc.dg/vla-4.c b/gcc/testsuite/gcc.dg/vla-4.c index 7ffbfb31b8e..c4a68fea9d9 100644 --- a/gcc/testsuite/gcc.dg/vla-4.c +++ b/gcc/testsuite/gcc.dg/vla-4.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-std=c99 -pedantic-errors" } */ +/* { dg-require-effective-target alloca } */ /* PR c/18740 */ static int i; diff --git a/gcc/testsuite/gcc.dg/winline-7.c b/gcc/testsuite/gcc.dg/winline-7.c index 33ad74b43c1..e3ac1296583 100644 --- a/gcc/testsuite/gcc.dg/winline-7.c +++ b/gcc/testsuite/gcc.dg/winline-7.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-Winline -O2 -fgnu89-inline" } */ +/* { dg-require-effective-target alloca } */ extern void *alloca (__SIZE_TYPE__); |