[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>
|
2019-06-19 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
PR c++/60364 - noreturn after first decl not diagnosed.
|
PR c++/60364 - noreturn after first decl not diagnosed.
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
/* PR c/77754 */
|
/* PR c/77754 */
|
||||||
|
|
||||||
int fn3();
|
int fn3();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
/* PR c/77754 */
|
/* PR c/77754 */
|
||||||
|
|
||||||
int fn3();
|
int fn3();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
/* PR c/77754 */
|
/* PR c/77754 */
|
||||||
|
|
||||||
int fn3();
|
int fn3();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
/* PR c/77754 */
|
/* PR c/77754 */
|
||||||
|
|
||||||
int fn3();
|
int fn3();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
/* PR c/77754 */
|
/* PR c/77754 */
|
||||||
|
|
||||||
int fn3();
|
int fn3();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
/* PR c/77754 */
|
/* PR c/77754 */
|
||||||
|
|
||||||
int fn3();
|
int fn3();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
enum a { b, c };
|
enum a { b, c };
|
||||||
struct d {
|
struct d {
|
||||||
_Bool e;
|
_Bool e;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// { dg-require-effective-target alloca }
|
||||||
/* PR middle-end/86528 */
|
/* PR middle-end/86528 */
|
||||||
|
|
||||||
void __attribute__((noinline, noclone))
|
void __attribute__((noinline, noclone))
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* PR middle-end/82063 - issues with arguments enabled by -Wall
|
/* PR middle-end/82063 - issues with arguments enabled by -Wall
|
||||||
Verify that alloca() calls in loops are not diagnosed by default.
|
Verify that alloca() calls in loops are not diagnosed by default.
|
||||||
{ dg-do compile }
|
{ dg-do compile }
|
||||||
|
{ dg-require-effective-target alloca }
|
||||||
{ dg-options "-O2 -ftrack-macro-expansion=0" } */
|
{ dg-options "-O2 -ftrack-macro-expansion=0" } */
|
||||||
|
|
||||||
extern void* alloca (__SIZE_TYPE__);
|
extern void* alloca (__SIZE_TYPE__);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* PR middle-end/82063 - issues with arguments enabled by -Wall
|
/* PR middle-end/82063 - issues with arguments enabled by -Wall
|
||||||
{ dg-do compile }
|
{ dg-do compile }
|
||||||
|
{ dg-require-effective-target alloca }
|
||||||
{ dg-options "-O2 -Walloca-larger-than=0 -Wvla-larger-than=0 -ftrack-macro-expansion=0" } */
|
{ dg-options "-O2 -Walloca-larger-than=0 -Wvla-larger-than=0 -ftrack-macro-expansion=0" } */
|
||||||
|
|
||||||
extern void* alloca (__SIZE_TYPE__);
|
extern void* alloca (__SIZE_TYPE__);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* PR tree-optimization/89662- -Warray-bounds ICE on void* arithmetic
|
/* PR tree-optimization/89662- -Warray-bounds ICE on void* arithmetic
|
||||||
{ dg-do compile }
|
{ dg-do compile }
|
||||||
|
{ dg-require-effective-target alloca }
|
||||||
{ dg-options "-O2 -Wall" } */
|
{ dg-options "-O2 -Wall" } */
|
||||||
|
|
||||||
void* vptr (void *c)
|
void* vptr (void *c)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
|
/* PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
|
||||||
a variable-length struct
|
a variable-length struct
|
||||||
{ dg-do compile }
|
{ dg-do compile }
|
||||||
|
{ dg-require-effective-target alloca }
|
||||||
{ dg-options "-O2 -Wall" } */
|
{ dg-options "-O2 -Wall" } */
|
||||||
|
|
||||||
int f (int n)
|
int f (int n)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target alloca } */
|
||||||
/* { dg-options "-O3 -Wstrict-overflow=2 -Werror" } */
|
/* { dg-options "-O3 -Wstrict-overflow=2 -Werror" } */
|
||||||
|
|
||||||
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* PR c/85931 - -Wsizeof-pointer-memaccess for strncpy with size of source
|
/* PR c/85931 - -Wsizeof-pointer-memaccess for strncpy with size of source
|
||||||
{ dg-do compile }
|
{ dg-do compile }
|
||||||
|
{ dg-require-effective-target alloca }
|
||||||
{ dg-options "-O2 -Wall -Wstringop-truncation -ftrack-macro-expansion=0" } */
|
{ dg-options "-O2 -Wall -Wstringop-truncation -ftrack-macro-expansion=0" } */
|
||||||
|
|
||||||
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target alloca } */
|
||||||
|
|
||||||
void *ptr;
|
void *ptr;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* PR middle-end/87099 */
|
/* PR middle-end/87099 */
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target alloca } */
|
||||||
/* { dg-options "-Wstringop-overflow" } */
|
/* { dg-options "-Wstringop-overflow" } */
|
||||||
|
|
||||||
void bar (char *);
|
void bar (char *);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* PR tree-optimization/87320 */
|
/* PR tree-optimization/87320 */
|
||||||
/* { dg-do run } */
|
/* { dg-do run } */
|
||||||
|
/* { dg-require-effective-target alloca } */
|
||||||
/* { dg-options "-O3" } */
|
/* { dg-options "-O3" } */
|
||||||
/* { dg-additional-options "-mavx" { target avx_runtime } } */
|
/* { dg-additional-options "-mavx" { target avx_runtime } } */
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* PR c/89045 */
|
/* PR c/89045 */
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target alloca } */
|
||||||
/* { dg-options "" } */
|
/* { dg-options "" } */
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* PR tree-optimization/90662 - strlen of a string in a vla plus offset
|
/* PR tree-optimization/90662 - strlen of a string in a vla plus offset
|
||||||
not folded
|
not folded
|
||||||
{ dg-do compile }
|
{ dg-do compile }
|
||||||
|
{ dg-require-effective-target alloca }
|
||||||
{ dg-options "-O2 -Wall -fdump-tree-gimple -fdump-tree-optimized" } */
|
{ dg-options "-O2 -Wall -fdump-tree-gimple -fdump-tree-optimized" } */
|
||||||
|
|
||||||
#include "strlenopt.h"
|
#include "strlenopt.h"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
|
/* { dg-require-effective-target alloca } */
|
||||||
/* { dg-options "-O2 -fdump-tree-dse1-details" } */
|
/* { dg-options "-O2 -fdump-tree-dse1-details" } */
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue