testsuite: annotate c-torture/compile tests with dg-require-stack-size
This patch annotates tests that make use of a significant a mount of stack space. Embedded and other restricted targets may have problems compiling and running these tests. Note that the annotations are in many cases not exact. testsuite/ChangeLog: * gcc.c-torture/compile/20000609-1.c: Annotate with dg-require-stack-size. * gcc.c-torture/compile/20000804-1.c: Likewise. * gcc.c-torture/compile/20020304-1.c: Likewise. * gcc.c-torture/compile/20020604-1.c: Likewise. * gcc.c-torture/compile/20021015-1.c: Likewise. * gcc.c-torture/compile/20050303-1.c: Likewise. * gcc.c-torture/compile/20060421-1.c: Likewise. * gcc.c-torture/compile/20071207-1.c: Likewise. * gcc.c-torture/compile/20080903-1.c: Likewise. * gcc.c-torture/compile/20121027-1.c: Likewise. * gcc.c-torture/compile/20151204.c: Likewise. * gcc.c-torture/compile/920501-12.c: Likewise. * gcc.c-torture/compile/920501-4.c: Likewise. * gcc.c-torture/compile/920723-1.c: Likewise. * gcc.c-torture/compile/921202-1.c: Likewise. * gcc.c-torture/compile/931003-1.c: Likewise. * gcc.c-torture/compile/931004-1.c: Likewise. * gcc.c-torture/compile/950719-1.c: Likewise. * gcc.c-torture/compile/951222-1.c: Likewise. * gcc.c-torture/compile/990517-1.c: Likewise. * gcc.c-torture/compile/bcopy.c: Likewise. * gcc.c-torture/compile/pr23929.c: Likewise. * gcc.c-torture/compile/pr25310.c: Likewise. * gcc.c-torture/compile/pr34458.c: Likewise. * gcc.c-torture/compile/pr39937.c: Likewise. * gcc.c-torture/compile/pr41181.c: Likewise. * gcc.c-torture/compile/pr41634.c: Likewise. * gcc.c-torture/compile/pr43415.c: Likewise. * gcc.c-torture/compile/pr43417.c: Likewise. * gcc.c-torture/compile/pr44788.c: Likewise. * gcc.c-torture/compile/sound.c: Likewise. From-SVN: r275504
This commit is contained in:
parent
4bc8aadf03
commit
e9b8025bb0
@ -1,3 +1,38 @@
|
|||||||
|
2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
|
||||||
|
|
||||||
|
* gcc.c-torture/compile/20000609-1.c: Annotate with
|
||||||
|
dg-require-stack-size.
|
||||||
|
* gcc.c-torture/compile/20000804-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20020304-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20020604-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20021015-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20050303-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20060421-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20071207-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20080903-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20121027-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/20151204.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/920501-12.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/920501-4.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/920723-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/921202-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/931003-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/931004-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/950719-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/951222-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/990517-1.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/bcopy.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr23929.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr25310.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr34458.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr39937.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr41181.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr41634.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr43415.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr43417.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/pr44788.c: Likewise.
|
||||||
|
* gcc.c-torture/compile/sound.c: Likewise.
|
||||||
|
|
||||||
2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||||||
|
|
||||||
* gcc.target/arm/pr91684.c: Use effective-target arm_prefer_ldrd_strd.
|
* gcc.target/arm/pr91684.c: Use effective-target arm_prefer_ldrd_strd.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "1024" } */
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
char temp[1024] = "tempfile";
|
char temp[1024] = "tempfile";
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
/* { dg-skip-if "Not enough 64-bit registers" { pdp11-*-* } { "-O0" } { "" } } */
|
/* { dg-skip-if "Not enough 64-bit registers" { pdp11-*-* } { "-O0" } { "" } } */
|
||||||
/* { dg-xfail-if "Inconsistent constraint on asm" { csky-*-* } { "-O0" } { "" } } */
|
/* { dg-xfail-if "Inconsistent constraint on asm" { csky-*-* } { "-O0" } { "" } } */
|
||||||
/* { dg-xfail-if "" { h8300-*-* } } */
|
/* { dg-xfail-if "" { h8300-*-* } } */
|
||||||
|
/* { dg-require-stack-size "99*4+16" } */
|
||||||
|
|
||||||
/* Copyright (C) 2000, 2003 Free Software Foundation */
|
/* Copyright (C) 2000, 2003 Free Software Foundation */
|
||||||
__complex__ long long f ()
|
__complex__ long long f ()
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
Original bug report is c/5830 by Manuel Serrano <Manuel.Serrano@inria.fr>.
|
Original bug report is c/5830 by Manuel Serrano <Manuel.Serrano@inria.fr>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* { dg-require-stack-size "513" } */
|
||||||
|
|
||||||
typedef union scmobj {
|
typedef union scmobj {
|
||||||
struct pair {
|
struct pair {
|
||||||
union scmobj *car;
|
union scmobj *car;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* { dg-do assemble } */
|
/* { dg-do assemble } */
|
||||||
/* { dg-require-effective-target ptr32plus } */
|
/* { dg-require-effective-target ptr32plus } */
|
||||||
/* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
|
/* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
|
||||||
|
/* { dg-require-stack-size "2048*4*4" } */
|
||||||
|
|
||||||
/* PR c/6957
|
/* PR c/6957
|
||||||
This testcase ICEd at -O2 on IA-32, because
|
This testcase ICEd at -O2 on IA-32, because
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* PR target/7370. */
|
/* PR target/7370. */
|
||||||
|
/* { dg-require-stack-size "4000 + 8" } */
|
||||||
|
|
||||||
int g (int *x, int *y);
|
int g (int *x, int *y);
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* { dg-require-effective-target int32plus } */
|
/* { dg-require-effective-target int32plus } */
|
||||||
/* { dg-require-effective-target size32plus } */
|
/* { dg-require-effective-target size32plus } */
|
||||||
|
/* { dg-require-stack-size "128*1024" } */
|
||||||
|
|
||||||
void crc()
|
void crc()
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
/* This test used to ICE on ARM with -mcpu=iwmmxt. */
|
/* This test used to ICE on ARM with -mcpu=iwmmxt. */
|
||||||
|
/* { dg-require-stack-size "249*8+1" } */
|
||||||
|
|
||||||
void
|
void
|
||||||
foo (void)
|
foo (void)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* PR tree-optimization/34371 */
|
/* PR tree-optimization/34371 */
|
||||||
|
/* { dg-require-stack-size "1108" } */
|
||||||
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
||||||
|
|
||||||
void centerln (int width, int ch, char *s)
|
void centerln (int width, int ch, char *s)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "4096" } */
|
||||||
|
|
||||||
struct bar { unsigned short length; };
|
struct bar { unsigned short length; };
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "1024+16" } */
|
||||||
|
|
||||||
extern int nc;
|
extern int nc;
|
||||||
void f(void)
|
void f(void)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* { dg-require-effective-target size20plus } */
|
/* { dg-require-effective-target size20plus } */
|
||||||
|
/* { dg-require-stack-size "32753*2" } */
|
||||||
|
|
||||||
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* { dg-do assemble } */
|
/* { dg-do assemble } */
|
||||||
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
|
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
|
||||||
|
/* { dg-require-stack-size "9999*4" } */
|
||||||
|
|
||||||
x(x){ return 3 + x;}
|
x(x){ return 3 + x;}
|
||||||
a(x){int y[994]; return 3 + x;}
|
a(x){int y[994]; return 3 + x;}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* { dg-do assemble } */
|
/* { dg-do assemble } */
|
||||||
/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
|
/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
|
||||||
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
|
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
|
||||||
|
/* { dg-require-stack-size "8196*4" } */
|
||||||
|
|
||||||
foo ()
|
foo ()
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* { dg-add-options stack_size } */
|
/* { dg-add-options stack_size } */
|
||||||
|
/* { dg-require-stack-size "75*75*4" } */
|
||||||
|
|
||||||
#if defined(STACK_SIZE) && STACK_SIZE < 65536
|
#if defined(STACK_SIZE) && STACK_SIZE < 65536
|
||||||
# define GITT_SIZE 75
|
# define GITT_SIZE 75
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "2055*3*8" } */
|
||||||
|
|
||||||
f ()
|
f ()
|
||||||
{
|
{
|
||||||
long dx[2055];
|
long dx[2055];
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "52*8" } */
|
||||||
|
|
||||||
f (n, a)
|
f (n, a)
|
||||||
int n;
|
int n;
|
||||||
double a[];
|
double a[];
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "4*4*2*80" } */
|
||||||
|
|
||||||
#define A "This is a long test that tests the structure initialization"
|
#define A "This is a long test that tests the structure initialization"
|
||||||
#define B A,A
|
#define B A,A
|
||||||
#define C B,B,B,B
|
#define C B,B,B,B
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "4092+4" } */
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int Header;
|
int Header;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "10000+3*8" } */
|
||||||
|
|
||||||
extern long long foo ();
|
extern long long foo ();
|
||||||
|
|
||||||
long long
|
long long
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
/* Extracted from the sdm module in perl. */
|
/* Extracted from the sdm module in perl. */
|
||||||
|
|
||||||
|
/* { dg-require-stack-size "12*2+8+1024+8" } */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *dptr;
|
char *dptr;
|
||||||
int dsize;
|
int dsize;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* { dg-add-options stack_size } */
|
/* { dg-add-options stack_size } */
|
||||||
|
/* { dg-require-stack-size "[dg-effective-target-value stack_size]*2" } */
|
||||||
|
|
||||||
void
|
void
|
||||||
bcopy1 (s, d, c)
|
bcopy1 (s, d, c)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* PR tree-optimization/23929 */
|
/* PR tree-optimization/23929 */
|
||||||
|
/* { dg-require-stack-size "2048+8" } */
|
||||||
|
|
||||||
extern void bar (char *);
|
extern void bar (char *);
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
|
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
|
||||||
|
/* { dg-require-stack-size "65536+20" } */
|
||||||
|
|
||||||
/* Prevent spurious test failures on 16-bit targets. */
|
/* Prevent spurious test failures on 16-bit targets. */
|
||||||
#if __INT_MAX__ >= 2147483647L
|
#if __INT_MAX__ >= 2147483647L
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
||||||
|
/* { dg-require-stack-size "1025*4" } */
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "4096" } */
|
||||||
|
|
||||||
int foo (__const char *__restrict __s);
|
int foo (__const char *__restrict __s);
|
||||||
static void
|
static void
|
||||||
read_anisou(char line[])
|
read_anisou(char line[])
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
/* { dg-require-effective-target ptr32plus } */
|
/* { dg-require-effective-target ptr32plus } */
|
||||||
/* { dg-skip-if "The array is too big" { "avr-*-*" "pdp11-*-*" } } */
|
/* { dg-skip-if "The array is too big" { "avr-*-*" "pdp11-*-*" } } */
|
||||||
|
/* { dg-require-stack-size "250*250" } */
|
||||||
|
|
||||||
char paths[1024];
|
char paths[1024];
|
||||||
static void x264_slicetype_path(char (*best_paths)[250], int n, int length)
|
static void x264_slicetype_path(char (*best_paths)[250], int n, int length)
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "2*512 + 256" } */
|
||||||
|
|
||||||
extern int _xgetw();
|
extern int _xgetw();
|
||||||
extern int foo(char*);
|
extern int foo(char*);
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "256*8+4" } */
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
unsigned long long table[256];
|
unsigned long long table[256];
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "1004*4+2*8" } */
|
||||||
|
|
||||||
int pid_count = 0;
|
int pid_count = 0;
|
||||||
|
|
||||||
unsigned int getopt (int, const char**, const char*);
|
unsigned int getopt (int, const char**, const char*);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* { dg-require-stack-size "1060*4+4" } */
|
||||||
|
|
||||||
void joint_decode(float* mlt_buffer1, int t) {
|
void joint_decode(float* mlt_buffer1, int t) {
|
||||||
int i;
|
int i;
|
||||||
float decode_buffer[1060];
|
float decode_buffer[1060];
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* { dg-require-stack-size "8192+4" } */
|
||||||
|
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user