From: Tom de Vries Date: Thu, 20 Jun 2019 10:36:18 +0000 (+0000) Subject: [testsuite] Add missing dg-require-effective-target alloca X-Git-Tag: upstream/12.2.0~23807 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a62a1606f908d2e75af46e48f7d533d5260dcacb;p=platform%2Fupstream%2Fgcc.git [testsuite] Add missing dg-require-effective-target alloca Add missing dg-require-effective-target alloca. Tested on nvptx. 2019-06-20 Tom de Vries * gcc.c-torture/compile/pr77754-1.c: Require alloca. * gcc.c-torture/compile/pr77754-2.c: Same. * gcc.c-torture/compile/pr77754-3.c: Same. * gcc.c-torture/compile/pr77754-4.c: Same. * gcc.c-torture/compile/pr77754-5.c: Same. * gcc.c-torture/compile/pr77754-6.c: Same. * gcc.c-torture/compile/pr87110.c: Same. * gcc.c-torture/execute/pr86528.c: Same. * gcc.dg/Walloca-larger-than-2.c: Same. * gcc.dg/Walloca-larger-than.c: Same. * gcc.dg/Warray-bounds-41.c: Same. * gcc.dg/Wrestrict-17.c: Same. * gcc.dg/Wstrict-overflow-27.c: Same. * gcc.dg/Wstringop-truncation-3.c: Same. * gcc.dg/pr78902.c: Same. * gcc.dg/pr87099.c: Same. * gcc.dg/pr87320.c: Same. * gcc.dg/pr89045.c: Same. * gcc.dg/strlenopt-62.c: Same. * gcc.dg/tree-ssa/alias-37.c: Same. From-SVN: r272501 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 521be1f..5da205b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,26 @@ +2019-06-20 Tom de Vries + + * gcc.c-torture/compile/pr77754-1.c: Require alloca. + * gcc.c-torture/compile/pr77754-2.c: Same. + * gcc.c-torture/compile/pr77754-3.c: Same. + * gcc.c-torture/compile/pr77754-4.c: Same. + * gcc.c-torture/compile/pr77754-5.c: Same. + * gcc.c-torture/compile/pr77754-6.c: Same. + * gcc.c-torture/compile/pr87110.c: Same. + * gcc.c-torture/execute/pr86528.c: Same. + * gcc.dg/Walloca-larger-than-2.c: Same. + * gcc.dg/Walloca-larger-than.c: Same. + * gcc.dg/Warray-bounds-41.c: Same. + * gcc.dg/Wrestrict-17.c: Same. + * gcc.dg/Wstrict-overflow-27.c: Same. + * gcc.dg/Wstringop-truncation-3.c: Same. + * gcc.dg/pr78902.c: Same. + * gcc.dg/pr87099.c: Same. + * gcc.dg/pr87320.c: Same. + * gcc.dg/pr89045.c: Same. + * gcc.dg/strlenopt-62.c: Same. + * gcc.dg/tree-ssa/alias-37.c: Same. + 2019-06-19 Marek Polacek PR c++/60364 - noreturn after first decl not diagnosed. diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c index 48587f7..be7ee30 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } /* PR c/77754 */ int fn3(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c index 411f270..d088961 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } /* PR c/77754 */ int fn3(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c index c6ff960..fb25e23 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } /* PR c/77754 */ int fn3(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c index f027405..1c5c461 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } /* PR c/77754 */ int fn3(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c index a9440dd..82c93d9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } /* PR c/77754 */ int fn3(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c index 2e7df3b..1b43043 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } /* PR c/77754 */ int fn3(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr87110.c b/gcc/testsuite/gcc.c-torture/compile/pr87110.c index 8428d3d..c2eba54 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr87110.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr87110.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } enum a { b, c }; struct d { _Bool e; diff --git a/gcc/testsuite/gcc.c-torture/execute/pr86528.c b/gcc/testsuite/gcc.c-torture/execute/pr86528.c index 2a7b011..9992faf 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr86528.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr86528.c @@ -1,3 +1,4 @@ +// { dg-require-effective-target alloca } /* PR middle-end/86528 */ void __attribute__((noinline, noclone)) diff --git a/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c b/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c index fe003bd..88572d9 100644 --- a/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c +++ b/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c @@ -1,6 +1,7 @@ /* PR middle-end/82063 - issues with arguments enabled by -Wall Verify that alloca() calls in loops are not diagnosed by default. { dg-do compile } + { dg-require-effective-target alloca } { dg-options "-O2 -ftrack-macro-expansion=0" } */ extern void* alloca (__SIZE_TYPE__); diff --git a/gcc/testsuite/gcc.dg/Walloca-larger-than.c b/gcc/testsuite/gcc.dg/Walloca-larger-than.c index 284601d..32ee15f 100644 --- a/gcc/testsuite/gcc.dg/Walloca-larger-than.c +++ b/gcc/testsuite/gcc.dg/Walloca-larger-than.c @@ -1,5 +1,6 @@ /* PR middle-end/82063 - issues with arguments enabled by -Wall { dg-do compile } + { dg-require-effective-target alloca } { dg-options "-O2 -Walloca-larger-than=0 -Wvla-larger-than=0 -ftrack-macro-expansion=0" } */ extern void* alloca (__SIZE_TYPE__); diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-41.c b/gcc/testsuite/gcc.dg/Warray-bounds-41.c index fd79590..2ff3692 100644 --- a/gcc/testsuite/gcc.dg/Warray-bounds-41.c +++ b/gcc/testsuite/gcc.dg/Warray-bounds-41.c @@ -1,5 +1,6 @@ /* PR tree-optimization/89662- -Warray-bounds ICE on void* arithmetic { dg-do compile } + { dg-require-effective-target alloca } { dg-options "-O2 -Wall" } */ void* vptr (void *c) diff --git a/gcc/testsuite/gcc.dg/Wrestrict-17.c b/gcc/testsuite/gcc.dg/Wrestrict-17.c index 8061fda..4e72597 100644 --- a/gcc/testsuite/gcc.dg/Wrestrict-17.c +++ b/gcc/testsuite/gcc.dg/Wrestrict-17.c @@ -1,6 +1,7 @@ /* PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on a variable-length struct { dg-do compile } + { dg-require-effective-target alloca } { dg-options "-O2 -Wall" } */ int f (int n) diff --git a/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c b/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c index 95d101a..e2cdcbc 100644 --- a/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c +++ b/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target alloca } */ /* { dg-options "-O3 -Wstrict-overflow=2 -Werror" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c b/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c index 57f4d64..6c67974 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c +++ b/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c @@ -1,5 +1,6 @@ /* PR c/85931 - -Wsizeof-pointer-memaccess for strncpy with size of source { dg-do compile } + { dg-require-effective-target alloca } { dg-options "-O2 -Wall -Wstringop-truncation -ftrack-macro-expansion=0" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/pr78902.c b/gcc/testsuite/gcc.dg/pr78902.c index 49efc97..51b4254 100644 --- a/gcc/testsuite/gcc.dg/pr78902.c +++ b/gcc/testsuite/gcc.dg/pr78902.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target alloca } */ void *ptr; diff --git a/gcc/testsuite/gcc.dg/pr87099.c b/gcc/testsuite/gcc.dg/pr87099.c index 599d721..47e2315 100644 --- a/gcc/testsuite/gcc.dg/pr87099.c +++ b/gcc/testsuite/gcc.dg/pr87099.c @@ -1,5 +1,6 @@ /* PR middle-end/87099 */ /* { dg-do compile } */ +/* { dg-require-effective-target alloca } */ /* { dg-options "-Wstringop-overflow" } */ void bar (char *); diff --git a/gcc/testsuite/gcc.dg/pr87320.c b/gcc/testsuite/gcc.dg/pr87320.c index 38ece59..b92ba89 100644 --- a/gcc/testsuite/gcc.dg/pr87320.c +++ b/gcc/testsuite/gcc.dg/pr87320.c @@ -1,5 +1,6 @@ /* PR tree-optimization/87320 */ /* { dg-do run } */ +/* { dg-require-effective-target alloca } */ /* { dg-options "-O3" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ diff --git a/gcc/testsuite/gcc.dg/pr89045.c b/gcc/testsuite/gcc.dg/pr89045.c index d8ba65b..2b5730d 100644 --- a/gcc/testsuite/gcc.dg/pr89045.c +++ b/gcc/testsuite/gcc.dg/pr89045.c @@ -1,5 +1,6 @@ /* PR c/89045 */ /* { dg-do compile } */ +/* { dg-require-effective-target alloca } */ /* { dg-options "" } */ int diff --git a/gcc/testsuite/gcc.dg/strlenopt-62.c b/gcc/testsuite/gcc.dg/strlenopt-62.c index 0e09a7a..569c18a 100644 --- a/gcc/testsuite/gcc.dg/strlenopt-62.c +++ b/gcc/testsuite/gcc.dg/strlenopt-62.c @@ -1,6 +1,7 @@ /* PR tree-optimization/90662 - strlen of a string in a vla plus offset not folded { dg-do compile } + { dg-require-effective-target alloca } { dg-options "-O2 -Wall -fdump-tree-gimple -fdump-tree-optimized" } */ #include "strlenopt.h" diff --git a/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c b/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c index 37eaaa6..2fb0e0c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target alloca } */ /* { dg-options "-O2 -fdump-tree-dse1-details" } */ int i;