diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-11-14 09:12:05 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-11-14 09:12:05 +0000 |
commit | 3d8d3012c439ac5fbac45f96ba959b6d5c84cef4 (patch) | |
tree | 952376793bd0961a62aa79d9beb65efecfb835ba /gcc/testsuite | |
parent | 79a6b3def91755d6f174904c978faa80897e09da (diff) | |
download | gcc-3d8d3012c439ac5fbac45f96ba959b6d5c84cef4.zip gcc-3d8d3012c439ac5fbac45f96ba959b6d5c84cef4.tar.gz gcc-3d8d3012c439ac5fbac45f96ba959b6d5c84cef4.tar.bz2 |
Require alloca for c-c++-common/Wstringop-truncation.c
2017-11-14 Tom de Vries <tom@codesourcery.com>
* c-c++-common/Wstringop-truncation.c: Require effective target alloca.
From-SVN: r254722
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/Wstringop-truncation.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 11a4a12..e973905 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-11-14 Tom de Vries <tom@codesourcery.com> + + * c-c++-common/Wstringop-truncation.c: Require effective target alloca. + 2017-11-13 Jan Hubicka <hubicka@ucw.cz> * 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 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; |