From 3d8d3012c439ac5fbac45f96ba959b6d5c84cef4 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 14 Nov 2017 09:12:05 +0000 Subject: 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/c-c++-common/Wstringop-truncation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/testsuite/c-c++-common/Wstringop-truncation.c') diff --git a/gcc/testsuite/c-c++-common/Wstringop-truncation.c b/gcc/testsuite/c-c++-common/Wstringop-truncation.c index c536a13..7fc439f 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; -- cgit v1.1