Add missing dg-require-effective-target alloca.
Tested on nvptx.
2019-06-20 Tom de Vries <tdevries@suse.de>
* gcc.c-torture/compile/pr77754-1.c: Require alloca.
* gcc.c-torture/compile/pr77754-2.c: Same.
* gcc.c-torture/compile/pr77754-3.c: Same.
* gcc.c-torture/compile/pr77754-4.c: Same.
* gcc.c-torture/compile/pr77754-5.c: Same.
* gcc.c-torture/compile/pr77754-6.c: Same.
* gcc.c-torture/compile/pr87110.c: Same.
* gcc.c-torture/execute/pr86528.c: Same.
* gcc.dg/Walloca-larger-than-2.c: Same.
* gcc.dg/Walloca-larger-than.c: Same.
* gcc.dg/Warray-bounds-41.c: Same.
* gcc.dg/Wrestrict-17.c: Same.
* gcc.dg/Wstrict-overflow-27.c: Same.
* gcc.dg/Wstringop-truncation-3.c: Same.
* gcc.dg/pr78902.c: Same.
* gcc.dg/pr87099.c: Same.
* gcc.dg/pr87320.c: Same.
* gcc.dg/pr89045.c: Same.
* gcc.dg/strlenopt-62.c: Same.
* gcc.dg/tree-ssa/alias-37.c: Same.
From-SVN: r272501
+2019-06-20 Tom de Vries <tdevries@suse.de>
+
+ * gcc.c-torture/compile/pr77754-1.c: Require alloca.
+ * gcc.c-torture/compile/pr77754-2.c: Same.
+ * gcc.c-torture/compile/pr77754-3.c: Same.
+ * gcc.c-torture/compile/pr77754-4.c: Same.
+ * gcc.c-torture/compile/pr77754-5.c: Same.
+ * gcc.c-torture/compile/pr77754-6.c: Same.
+ * gcc.c-torture/compile/pr87110.c: Same.
+ * gcc.c-torture/execute/pr86528.c: Same.
+ * gcc.dg/Walloca-larger-than-2.c: Same.
+ * gcc.dg/Walloca-larger-than.c: Same.
+ * gcc.dg/Warray-bounds-41.c: Same.
+ * gcc.dg/Wrestrict-17.c: Same.
+ * gcc.dg/Wstrict-overflow-27.c: Same.
+ * gcc.dg/Wstringop-truncation-3.c: Same.
+ * gcc.dg/pr78902.c: Same.
+ * gcc.dg/pr87099.c: Same.
+ * gcc.dg/pr87320.c: Same.
+ * gcc.dg/pr89045.c: Same.
+ * gcc.dg/strlenopt-62.c: Same.
+ * gcc.dg/tree-ssa/alias-37.c: Same.
+
2019-06-19 Marek Polacek <polacek@redhat.com>
PR c++/60364 - noreturn after first decl not diagnosed.
+// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
+// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
+// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
+// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
+// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
+// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
+// { dg-require-effective-target alloca }
enum a { b, c };
struct d {
_Bool e;
+// { dg-require-effective-target alloca }
/* PR middle-end/86528 */
void __attribute__((noinline, noclone))
/* PR middle-end/82063 - issues with arguments enabled by -Wall
Verify that alloca() calls in loops are not diagnosed by default.
{ dg-do compile }
+ { dg-require-effective-target alloca }
{ dg-options "-O2 -ftrack-macro-expansion=0" } */
extern void* alloca (__SIZE_TYPE__);
/* PR middle-end/82063 - issues with arguments enabled by -Wall
{ dg-do compile }
+ { dg-require-effective-target alloca }
{ dg-options "-O2 -Walloca-larger-than=0 -Wvla-larger-than=0 -ftrack-macro-expansion=0" } */
extern void* alloca (__SIZE_TYPE__);
/* PR tree-optimization/89662- -Warray-bounds ICE on void* arithmetic
{ dg-do compile }
+ { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall" } */
void* vptr (void *c)
/* PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
a variable-length struct
{ dg-do compile }
+ { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall" } */
int f (int n)
/* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
/* { dg-options "-O3 -Wstrict-overflow=2 -Werror" } */
typedef __SIZE_TYPE__ size_t;
/* PR c/85931 - -Wsizeof-pointer-memaccess for strncpy with size of source
{ dg-do compile }
+ { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall -Wstringop-truncation -ftrack-macro-expansion=0" } */
typedef __SIZE_TYPE__ size_t;
/* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
void *ptr;
/* PR middle-end/87099 */
/* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
/* { dg-options "-Wstringop-overflow" } */
void bar (char *);
/* PR tree-optimization/87320 */
/* { dg-do run } */
+/* { dg-require-effective-target alloca } */
/* { dg-options "-O3" } */
/* { dg-additional-options "-mavx" { target avx_runtime } } */
/* PR c/89045 */
/* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
/* { dg-options "" } */
int
/* PR tree-optimization/90662 - strlen of a string in a vla plus offset
not folded
{ dg-do compile }
+ { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall -fdump-tree-gimple -fdump-tree-optimized" } */
#include "strlenopt.h"
/* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
/* { dg-options "-O2 -fdump-tree-dse1-details" } */
int i;