From 3d8d3012c439ac5fbac45f96ba959b6d5c84cef4 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 14 Nov 2017 09:12:05 +0000 Subject: [PATCH] Require alloca for c-c++-common/Wstringop-truncation.c 2017-11-14 Tom de Vries * c-c++-common/Wstringop-truncation.c: Require effective target alloca. From-SVN: r254722 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/c-c++-common/Wstringop-truncation.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 11a4a121f13..e973905049e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-11-14 Tom de Vries + + * c-c++-common/Wstringop-truncation.c: Require effective target alloca. + 2017-11-13 Jan Hubicka * gcc.dg/tree-ssa/fnsplit-2.c: New testcase. diff --git a/gcc/testsuite/c-c++-common/Wstringop-truncation.c b/gcc/testsuite/c-c++-common/Wstringop-truncation.c index c536a13b78e..7fc439fb630 100644 --- a/gcc/testsuite/c-c++-common/Wstringop-truncation.c +++ b/gcc/testsuite/c-c++-common/Wstringop-truncation.c @@ -1,6 +1,7 @@ /* PR middle-end/81117 - Improve buffer overflow checking in strncpy { dg-do compile } - { dg-options "-O2 -Wstringop-truncation -Wno-stringop-overflow -ftrack-macro-expansion=0" } */ + { dg-options "-O2 -Wstringop-truncation -Wno-stringop-overflow -ftrack-macro-expansion=0" } + { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; -- 2.30.2