From b5da8f948389dfccfedd5b385175e258fd28a777 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 8 Jan 2018 09:59:13 +0000 Subject: [PATCH] Require alloca for some test-cases 2018-01-08 Tom de Vries * c-c++-common/builtins.c: Require effective target alloca. * gcc.dg/Wrestrict.c: Same. * gcc.dg/tree-ssa/loop-interchange-15.c: Same. From-SVN: r256332 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/c-c++-common/builtins.c | 3 ++- gcc/testsuite/gcc.dg/Wrestrict.c | 3 ++- gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index de940033386..3a72d8dddd8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-01-08 Tom de Vries + + * c-c++-common/builtins.c: Require effective target alloca. + * gcc.dg/Wrestrict.c: Same. + * gcc.dg/tree-ssa/loop-interchange-15.c: Same. + 2018-01-08 Richard Biener PR middle-end/83580 diff --git a/gcc/testsuite/c-c++-common/builtins.c b/gcc/testsuite/c-c++-common/builtins.c index 673fcad22aa..3f1ef115aed 100644 --- a/gcc/testsuite/c-c++-common/builtins.c +++ b/gcc/testsuite/c-c++-common/builtins.c @@ -2,7 +2,8 @@ with no prototype do not cause an ICE. { dg-do compile } { dg-options "-O2 -Wall -Wextra" } - { dg-prune-output "warning" } */ + { dg-prune-output "warning" } + { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/Wrestrict.c b/gcc/testsuite/gcc.dg/Wrestrict.c index 076f87862d8..266443fe25d 100644 --- a/gcc/testsuite/gcc.dg/Wrestrict.c +++ b/gcc/testsuite/gcc.dg/Wrestrict.c @@ -1,6 +1,7 @@ /* Test to verify that VLAs are handled gracefully by -Wrestrict { dg-do compile } - { dg-options "-O2 -Wrestrict" } */ + { dg-options "-O2 -Wrestrict" } + { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c index 420880e8fc9..63e5bb73134 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c @@ -1,6 +1,7 @@ /* PR tree-optimization/83337 */ /* { dg-do run { target int32plus } } */ /* { dg-options "-O2 -floop-interchange" } */ +/* { dg-require-effective-target alloca } */ /* Copied from graphite/interchange-5.c */ -- 2.30.2