Require alloca for c-c++-common/Wstringop-truncation.c
authorTom de Vries <tom@codesourcery.com>
Tue, 14 Nov 2017 09:12:05 +0000 (09:12 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 14 Nov 2017 09:12:05 +0000 (09:12 +0000)
2017-11-14  Tom de Vries  <tom@codesourcery.com>

* c-c++-common/Wstringop-truncation.c: Require effective target alloca.

From-SVN: r254722

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wstringop-truncation.c

index 11a4a121f13a368f58a4dc97ee8327275eb3c9ce..e973905049e722d60deecd804e5f0892c35741b1 100644 (file)
@@ -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.
index c536a13b78e10f9c46b83a8086d0d2a4e2f5e206..7fc439fb630d244b76b399e1216e73acf2bbae9f 100644 (file)
@@ -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;