[testsuite] Add missing require-effective-target allloca

Add missing require-effect-target alloca directives.

Tested on nvptx.

gcc/testsuite/ChangeLog:

	* gcc.dg/torture/pr92088-1.c: Add require-effective-target alloca.
	* gcc.dg/torture/pr92088-2.c: Same.
	* gcc.dg/torture/pr93124.c: Same.
	* gcc.dg/torture/pr94479.c: Same.
	* gcc.dg/tree-ssa/builtin-sprintf-warn-22.c: Same.
This commit is contained in:
Tom de Vries 2020-08-14 02:31:42 +02:00
parent b3cb56060b
commit 04630cd6ec
5 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,5 @@
/* { dg-do run } */
/* { dg-require-effective-target alloca } */
int __attribute__((noipa))
g (char *p)

View file

@ -1,4 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target alloca } */
void foo(int n)
{

View file

@ -1,4 +1,5 @@
/* { dg-additional-options "-fno-rerun-cse-after-loop -fno-guess-branch-probability -fno-tree-fre" } */
/* { dg-require-effective-target alloca } */
int x;

View file

@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-require-stack-check "specific" } */
/* { dg-additional-options "-fstack-check -w" } */
/* { dg-require-effective-target alloca } */
int a;
struct b {

View file

@ -1,7 +1,8 @@
/* PR tree-optimization/91567 - Spurious -Wformat-overflow warnings building
glibc (32-bit only)
{ dg-do compile }
{ dg-options "-O2 -Wall -ftrack-macro-expansion=0" } */
{ dg-options "-O2 -Wall -ftrack-macro-expansion=0" }
{ dg-require-effective-target alloca } */
typedef __SIZE_TYPE__ size_t;