[testsuite] Add missing dg-require-effective-target alloca
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
This commit is contained in:
parent
9f35dcd405
commit
a62a1606f9
|
@ -1,3 +1,26 @@
|
|||
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.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
/* PR c/77754 */
|
||||
|
||||
int fn3();
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
/* PR c/77754 */
|
||||
|
||||
int fn3();
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
/* PR c/77754 */
|
||||
|
||||
int fn3();
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
/* PR c/77754 */
|
||||
|
||||
int fn3();
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
/* PR c/77754 */
|
||||
|
||||
int fn3();
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
/* PR c/77754 */
|
||||
|
||||
int fn3();
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
enum a { b, c };
|
||||
struct d {
|
||||
_Bool e;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-require-effective-target alloca }
|
||||
/* PR middle-end/86528 */
|
||||
|
||||
void __attribute__((noinline, noclone))
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* 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__);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* 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__);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* 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)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* 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)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target alloca } */
|
||||
/* { dg-options "-O3 -Wstrict-overflow=2 -Werror" } */
|
||||
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* 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;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target alloca } */
|
||||
|
||||
void *ptr;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* PR middle-end/87099 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target alloca } */
|
||||
/* { dg-options "-Wstringop-overflow" } */
|
||||
|
||||
void bar (char *);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* PR tree-optimization/87320 */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target alloca } */
|
||||
/* { dg-options "-O3" } */
|
||||
/* { dg-additional-options "-mavx" { target avx_runtime } } */
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* PR c/89045 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target alloca } */
|
||||
/* { dg-options "" } */
|
||||
|
||||
int
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* 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"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target alloca } */
|
||||
/* { dg-options "-O2 -fdump-tree-dse1-details" } */
|
||||
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue