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
+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>
* gcc.target/arm/pr91684.c: Use effective-target arm_prefer_ldrd_strd.
+/* { dg-require-stack-size "1024" } */
+
int main ()
{
char temp[1024] = "tempfile";
/* { dg-skip-if "Not enough 64-bit registers" { pdp11-*-* } { "-O0" } { "" } } */
/* { dg-xfail-if "Inconsistent constraint on asm" { csky-*-* } { "-O0" } { "" } } */
/* { dg-xfail-if "" { h8300-*-* } } */
+/* { dg-require-stack-size "99*4+16" } */
/* Copyright (C) 2000, 2003 Free Software Foundation */
__complex__ long long f ()
Original bug report is c/5830 by Manuel Serrano <Manuel.Serrano@inria.fr>.
*/
+/* { dg-require-stack-size "513" } */
+
typedef union scmobj {
struct pair {
union scmobj *car;
/* { dg-do assemble } */
/* { dg-require-effective-target ptr32plus } */
/* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
+/* { dg-require-stack-size "2048*4*4" } */
/* PR c/6957
This testcase ICEd at -O2 on IA-32, because
/* PR target/7370. */
+/* { dg-require-stack-size "4000 + 8" } */
int g (int *x, int *y);
/* { dg-require-effective-target int32plus } */
/* { dg-require-effective-target size32plus } */
+/* { dg-require-stack-size "128*1024" } */
void crc()
{
/* This test used to ICE on ARM with -mcpu=iwmmxt. */
+/* { dg-require-stack-size "249*8+1" } */
+
void
foo (void)
{
/* PR tree-optimization/34371 */
+/* { dg-require-stack-size "1108" } */
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
void centerln (int width, int ch, char *s)
+/* { dg-require-stack-size "4096" } */
+
struct bar { unsigned short length; };
int
+/* { dg-require-stack-size "1024+16" } */
+
extern int nc;
void f(void)
{
/* { dg-require-effective-target size20plus } */
+/* { dg-require-stack-size "32753*2" } */
typedef __SIZE_TYPE__ size_t;
/* { dg-do assemble } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
+/* { dg-require-stack-size "9999*4" } */
x(x){ return 3 + x;}
a(x){int y[994]; return 3 + x;}
/* { dg-do assemble } */
/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
+/* { dg-require-stack-size "8196*4" } */
foo ()
{
/* { dg-add-options stack_size } */
+/* { dg-require-stack-size "75*75*4" } */
#if defined(STACK_SIZE) && STACK_SIZE < 65536
# define GITT_SIZE 75
+/* { dg-require-stack-size "2055*3*8" } */
+
f ()
{
long dx[2055];
+/* { dg-require-stack-size "52*8" } */
+
f (n, a)
int n;
double a[];
+/* { dg-require-stack-size "4*4*2*80" } */
+
#define A "This is a long test that tests the structure initialization"
#define B A,A
#define C B,B,B,B
+/* { dg-require-stack-size "4092+4" } */
+
typedef struct
{
int Header;
+/* { dg-require-stack-size "10000+3*8" } */
+
extern long long foo ();
long long
/* Extracted from the sdm module in perl. */
+
+/* { dg-require-stack-size "12*2+8+1024+8" } */
+
typedef struct {
char *dptr;
int dsize;
/* { dg-add-options stack_size } */
+/* { dg-require-stack-size "[dg-effective-target-value stack_size]*2" } */
void
bcopy1 (s, d, c)
/* PR tree-optimization/23929 */
+/* { dg-require-stack-size "2048+8" } */
extern void bar (char *);
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
+/* { dg-require-stack-size "65536+20" } */
/* Prevent spurious test failures on 16-bit targets. */
#if __INT_MAX__ >= 2147483647L
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
+/* { dg-require-stack-size "1025*4" } */
typedef struct
{
+/* { dg-require-stack-size "4096" } */
+
int foo (__const char *__restrict __s);
static void
read_anisou(char line[])
/* { dg-require-effective-target ptr32plus } */
/* { dg-skip-if "The array is too big" { "avr-*-*" "pdp11-*-*" } } */
+/* { dg-require-stack-size "250*250" } */
+
char paths[1024];
static void x264_slicetype_path(char (*best_paths)[250], int n, int length)
{
+/* { dg-require-stack-size "2*512 + 256" } */
+
extern int _xgetw();
extern int foo(char*);
+/* { dg-require-stack-size "256*8+4" } */
+
int main()
{
unsigned long long table[256];
+/* { dg-require-stack-size "1004*4+2*8" } */
+
int pid_count = 0;
unsigned int getopt (int, const char**, const char*);
+/* { dg-require-stack-size "1060*4+4" } */
+
void joint_decode(float* mlt_buffer1, int t) {
int i;
float decode_buffer[1060];
+/* { dg-require-stack-size "8192+4" } */
main ()
{