Wsizeof-pointer-memaccess1.c: Require alloca.
authorNathan Sidwell <nathan@acm.org>
Sat, 22 Aug 2015 15:09:03 +0000 (15:09 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sat, 22 Aug 2015 15:09:03 +0000 (15:09 +0000)
* 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.

From-SVN: r227097

54 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c
gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c
gcc/testsuite/c-c++-common/Wunused-var-6.c
gcc/testsuite/c-c++-common/Wunused-var-8.c
gcc/testsuite/c-c++-common/goacc/reduction-1.c
gcc/testsuite/c-c++-common/goacc/reduction-2.c
gcc/testsuite/c-c++-common/goacc/reduction-3.c
gcc/testsuite/c-c++-common/goacc/reduction-4.c
gcc/testsuite/c-c++-common/gomp/pr61486-2.c
gcc/testsuite/gcc.dg/20020415-1.c
gcc/testsuite/gcc.dg/20030331-2.c
gcc/testsuite/gcc.dg/20101010-1.c
gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c
gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c
gcc/testsuite/gcc.dg/builtin-return-1.c
gcc/testsuite/gcc.dg/builtins-64.c
gcc/testsuite/gcc.dg/c99-const-expr-13.c
gcc/testsuite/gcc.dg/c99-vla-1.c
gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c
gcc/testsuite/gcc.dg/fold-alloca-1.c
gcc/testsuite/gcc.dg/gomp/pr30494.c
gcc/testsuite/gcc.dg/gomp/vla-2.c
gcc/testsuite/gcc.dg/gomp/vla-3.c
gcc/testsuite/gcc.dg/gomp/vla-4.c
gcc/testsuite/gcc.dg/gomp/vla-5.c
gcc/testsuite/gcc.dg/guality/guality.c
gcc/testsuite/gcc.dg/pr25682.c
gcc/testsuite/gcc.dg/pr27301.c
gcc/testsuite/gcc.dg/pr33238.c
gcc/testsuite/gcc.dg/pr41470.c
gcc/testsuite/gcc.dg/pr49120.c
gcc/testsuite/gcc.dg/pr50764.c
gcc/testsuite/gcc.dg/pr51491-2.c
gcc/testsuite/gcc.dg/pr51990-2.c
gcc/testsuite/gcc.dg/pr59011.c
gcc/testsuite/gcc.dg/pr59523.c
gcc/testsuite/gcc.dg/pr61561.c
gcc/testsuite/gcc.dg/shrink-wrap-alloca.c
gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c
gcc/testsuite/gcc.dg/torture/calleesave-sse.c
gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c
gcc/testsuite/gcc.dg/tree-ssa/20080530.c
gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c
gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c
gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c
gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c
gcc/testsuite/gcc.dg/uninit-9-O0.c
gcc/testsuite/gcc.dg/uninit-9.c
gcc/testsuite/gcc.dg/vla-2.c
gcc/testsuite/gcc.dg/vla-22.c
gcc/testsuite/gcc.dg/vla-3.c
gcc/testsuite/gcc.dg/vla-4.c
gcc/testsuite/gcc.dg/winline-7.c

index ba2444dd24f18cb84df89ecee4be0305328c6c32..da245386899ad451f5ee626afd759b388b8570bc 100644 (file)
@@ -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.
index 27c5da426bdc666da3d67bf735c27f6e4231136c..7861bb082cde3c132883bba05d689f3b13a076d1 100644 (file)
@@ -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
index e067d7d44e90f75fdf41e8d6895dd0315aad4bea..d9ec7e2cace7555a1eb6e3e1402e0cd07e70f88d 100644 (file)
@@ -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)
index 1217719a29881b0646ac6bd8d41dac3011757367..12a7dddc00db82c54f9b57669b3b5d8958fd104f 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/43981 */
 /* { dg-do compile } */
 /* { dg-options "-Wunused" } */
+/* { dg-require-effective-target alloca } */
 
 void g (char *);
 
index 0923b3556625584ecf79edecaf76bccefc7944fc..8c49ed2fa5cd7581707582f40bf23c08267a7441 100644 (file)
@@ -1,6 +1,7 @@
 /* Origin: PR c++/44108 */
 /* { dg-options "-Wunused" } */
 /* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
 
 int
 foo ()
index 0f5008298313194549e86fb2ecef1cf53b9ceb6c..de97125b4cf8c0c18325cee661d4729ce57ec880 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target alloca } */
 /* Integer reductions.  */
 
 #define vl 32
index 1f95138ff0bb2c7ab5c0cc67f2746cd6baed5c90..2964236f6c678cc4b22ce256e77dce686d505e95 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target alloca } */
 /* float reductions.  */
 
 #define vl 32
index 476e375c65421a51b4b5f7f823185b954b7d6122..34c51c2505aecfe3180ee9aaf55846e693074f53 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target alloca } */
 /* double reductions.  */
 
 #define vl 32
index 73dde869a9d6945a5bf6de5490e72b29e2480653..328c0d4e27b46fa668dce544e1bdbcbe7f2cd1f1 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target alloca } */
 /* complex reductions.  */
 
 #define vl 32
index 729438101e2f00481330c21950c890bb7dcb55e0..553327172469f5aa1a96e4e535c9e94a0203912a 100644 (file)
@@ -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);
index 7d5b5aebdea1a81c353ec6277a6e1790ff6b12fd..d0b64390718def3230100c8d4106d44aa20206bd 100644 (file)
@@ -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" } */
 
index 2fce78ea97c10bb94369fb3c7ae8fc7933f9643d..5dc164fc4fe2d930a0af3ee46da0b23b1e9fb489 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "" }
+/* { dg-require-effective-target alloca } */
 
 extern int printf (const char *, ...);
 
index cd8fddf62d29f55b2397dee2792d5da69aee7a6c..2067012ebcdabb539ebeddd41ba9c0abf7ec4088 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fno-crossjumping" } */
+/* { dg-require-effective-target alloca } */
 
 int bar1 ();
 int bar2 ();
index 66be5a5c4b21929612f27cc11bf6c7d4f229a84e..ebdef690879be5c620285967ab05627f391e6e55 100644 (file)
@@ -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);
index e9f63d36872e19412da685d1b517c5926f652dc3..87f5ef9d1719f2c8c860cc0c8c8658e9aff5ed86 100644 (file)
@@ -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[])
 {
index 68fd0556b3db49ac8f99ab88598ef6f15f0f268c..0aa0afd88a7913c9c5ed90e99095ddae3d56b085 100644 (file)
@@ -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'.  */
 
index 6e84633d5916a06d8d91c5bd51e0d81e5304d640..3c04c44a6776e99cddb51a4fe7ec0ab17809a452 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-require-effective-target alloca } */
 
 int main ()
 {
index 0ee525bec61c85656b2733899a760ca60bb1a077..e477e5d162d0d76fb84f304f8e8b8338b1590326 100644 (file)
@@ -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)
index 4a3a0f8e238a66b8776e21736f426ead94d9850b..4501852066c40be58118f99cb24517699df2259e 100644 (file)
@@ -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)
index 1fd2eba1c7fd8c817b1e8d5c947a5c0e9c118bec..db6ab56ab7d5ec205dc2a2fdb121cb8f8b217830 100644 (file)
@@ -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
index 9cace17c5004f9c30d1abe153820ffb22ade4899..733aeecca306ed50bf9faaffa8b848421ab6576b 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-fdump-tree-cfg" } */
+/* { dg-require-effective-target alloca } */
 
 void *alloca (__SIZE_TYPE__);
 void link_error ();
index 6a042ce69746fbf65192cf2ef575725a6357484a..fa6d7ffc696b1ae6eb08812445ff5bfd757d2ffb 100644 (file)
@@ -1,5 +1,6 @@
 /* PR middle-end/30494 */
 /* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
 
 int
 foo (int n)
index fc18ffc5743a370ddbd499623bfac4385a2c446b..ea7c652553ac9117f746b9f92cfbc2903f110245 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+/* { dg-require-effective-target alloca } */
 
 void foo(int n, int i)
 {
index b1677b833ef7d26efdd1a365a09674236886a769..5070907f1e76c71fb8eea189e8afb81ee6fbbc0b 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+/* { dg-require-effective-target alloca } */
 
 void foo(int n, int i)
 {
index 2c3c0aa43b7d53f0d129562a45939249a01e8730..e784c74058c1f3057692ae218e1b4358424aaa48 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+/* { dg-require-effective-target alloca } */
 
 void foo(int n, int i)
 {
index 6c6d5517af845a876ae4a6d155b0a360c0ed3af1..20be204a5e15205f82f737d669f6b8278feb971f 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile }
+/* { dg-require-effective-target alloca } */
 
 void foo(int n, int i)
 {
index d5d950fcdac29ea57ff5667332a59941affec53e..db015e6a558b7d55908bbbecdb8eecd446261107 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run { xfail *-*-* } } */
 /* { dg-options "-g" } */
+/* { dg-require-effective-target alloca } */
 
 #include "guality.h"
 
index e8cab1d05e508c9afa1db3d60655d63edf6116e0..ecf5669403da2c9177653c02868b2c00cb636617 100644 (file)
@@ -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.  */
 
index 3b5a8f55b5d533b39c36b2477d8ad9ee1441598a..cc55c745a0337065ba75832ea04131e1dd1efe83 100644 (file)
@@ -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)
index 0b399041a867f0909337f243b337dac556257007..993384a186de3fc1d6b579f324f8aa1d2c4818ae 100644 (file)
@@ -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)
index ddbe66e903be5c1b773b97b70e8ee922092b9368..7ef008615239c626c1318f06e1c0addac94b3614 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-fexceptions" } */
+/* { dg-require-effective-target alloca } */
 
 void cf (void *);
 
index 1a65222cfecaa538ba7dea27e01ed2eb3173c71d..50993e69dfd2b1ca428f0db93d365a4cd56f4d85 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/49120 */
 /* { dg-do compile } */
 /* { dg-options "-Wall" } */
+/* { dg-require-effective-target alloca } */
 
 int
 main ()
index e3b8da8670f8adea7069463a9fd884eccb43b5b9..e0cd320db03ad69a52d7f4005312fed1aa125501 100644 (file)
@@ -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);
index f2dc8df028d7f31e2b2a994f528f794d58f232c4..429ee4e59149c8ea8b92e8f41a7e03110d52f7db 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-ccp1" } */
+/* { dg-require-effective-target alloca } */
 
 int g (int *);
 
index 1ced0a833a8febf38c7bef58f860b16305822663..702bab91357b4ad0009f5e7775ea7c3125427a8e 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
+/* { dg-require-effective-target alloca } */
 
 int y;
 extern int foo (int, ...) __attribute__((pure));
index 2fb8187ad55212c0e30559b2a0790b9a6c26abad..b0d6c0f30a1d06e06dc72ec2f672ef80d1d8992c 100644 (file)
@@ -1,6 +1,7 @@
 /* PR middle-end/59011 */
 /* { dg-do compile } */
 /* { dg-options "-std=gnu99" } */
+/* { dg-require-effective-target alloca } */
 
 void
 foo (int m)
index b523eaea8a1516e21e96e62f08756977d9b9b2c3..a6c3302a6831d8ee840da4b39982e9b3ddb1a89f 100644 (file)
@@ -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)
index 1512f20e3d043a216aeea7aeca77cff16829ca62..47d0ff0b818e76ef755caacf8acde3354207f77f 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/61561.  */
 /* { dg-do assemble } */
 /* { dg-options " -w -O2" } */
+/* { dg-require-effective-target alloca } */
 
 int dummy (int a);
 
index fbe6f4fd20d80e1d398f039a8e692323033493ab..b9a2af1c51bc34c05b036e2f60b02a5e0c773770 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -g" } */
+/* { dg-require-effective-target alloca } */
 
 int *p;
 
index a82f4efbdafabd1f2a7eb7c8c58de0678ae123e7..7ce9eaeb26152fe76dc602efa1df0adac20b3fec 100644 (file)
@@ -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);
index 292791c7259e4e41ea4f1be8e90667edd3bd5ef5..76db20ef67cc9fc5d1fb11d4c3cc201577033348 100644 (file)
@@ -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);
index 259932480a166416e1cd2317483fb90204288250..0712922b3638f983152ce2463474a0578667b506 100644 (file)
@@ -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 *);
index 8583574266e1c137fd577da68b9961bc6f62107a..c472f8167a0db3c511edaca5372346e064900d76 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-einline" } */
+/* { dg-require-effective-target alloca } */
 
 void bar (char *);
 int i;
index c80ed85e8302fd0d7fe4d9a3b86199bcc8e5bd2c..8836ab229724a0faede4337b54cf23ca33413be1 100644 (file)
@@ -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)
index cdbf7b000316337289bb355e18db3bf09768a052..7b5be75bf8342cfabd349396709a166cb522703f 100644 (file)
@@ -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)
index 3232f3447f9097571161fcdd69c0764c06764ccf..ed3541e22e0c43f39db19c8284f348d35347357f 100644 (file)
@@ -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)
index f32e8fab861fb517cf7e3a97caa8a49caaff5822..0f7948c3e14cc6d05977d5dfb0760e0c61af1804 100644 (file)
@@ -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)
index 493dd68d908743c3586974e9e9626c074635cee8..ac24e7a83622d36ab505a2799e9ced0dd52b4327 100644 (file)
@@ -3,6 +3,7 @@
 
 /* { dg-do compile } */
 /* { dg-options "-Wuninitialized" } */
+/* { dg-require-effective-target alloca } */
 
 struct foo
 {
index 2a8ccb69f320dbb6039536d947a1ba3f08976571..d1af7328a96ac7e9c9e306f12b2bd0e3245727ae 100644 (file)
@@ -3,6 +3,7 @@
 
 /* { dg-do compile } */
 /* { dg-options "-O -Wuninitialized" } */
+/* { dg-require-effective-target alloca } */
 
 struct foo
 {
index 72c6465903054adcb2ff96fdb25932b6f715520e..e6ddcccfb4b5cb75b651f5b716e2b13e2103c948 100644 (file)
@@ -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.  */
index f924650af03ec1caa647cbf6c725664d92fcc4ee..8025bae8f6f34b7cacbcd184b582aed737f0b621 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
+/* { dg-require-effective-target alloca } */
 
 extern void bar (int *);
 
index 619c0422a4d36fc3158a30838b9c55ca04781029..51dae42f7ecb598296b34e570c381ae5a313a64f 100644 (file)
@@ -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. */
index 7ffbfb31b8e4b47a4585bf4c5800995ad5611c2f..c4a68fea9d9c7baed06b0a1309446b9bae9cd505 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-std=c99 -pedantic-errors" } */
+/* { dg-require-effective-target alloca } */
 /* PR c/18740 */
 
 static int i;
index 33ad74b43c16bfeeeab41b2d753e5c5f9f22b889..e3ac1296583fd48b5cb2b5d0bff92c51f18a1984 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Winline -O2 -fgnu89-inline" } */
+/* { dg-require-effective-target alloca } */
 
 extern void *alloca (__SIZE_TYPE__);