testsuite: annotate c-torture/compile tests with dg-require-stack-size
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 9 Sep 2019 09:49:34 +0000 (11:49 +0200)
committerJose E. Marchesi <jemarch@gcc.gnu.org>
Mon, 9 Sep 2019 09:49:34 +0000 (11:49 +0200)
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

32 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20000609-1.c
gcc/testsuite/gcc.c-torture/compile/20000804-1.c
gcc/testsuite/gcc.c-torture/compile/20020304-1.c
gcc/testsuite/gcc.c-torture/compile/20020604-1.c
gcc/testsuite/gcc.c-torture/compile/20021015-1.c
gcc/testsuite/gcc.c-torture/compile/20050303-1.c
gcc/testsuite/gcc.c-torture/compile/20060421-1.c
gcc/testsuite/gcc.c-torture/compile/20071207-1.c
gcc/testsuite/gcc.c-torture/compile/20080903-1.c
gcc/testsuite/gcc.c-torture/compile/20121027-1.c
gcc/testsuite/gcc.c-torture/compile/20151204.c
gcc/testsuite/gcc.c-torture/compile/920501-12.c
gcc/testsuite/gcc.c-torture/compile/920501-4.c
gcc/testsuite/gcc.c-torture/compile/920723-1.c
gcc/testsuite/gcc.c-torture/compile/921202-1.c
gcc/testsuite/gcc.c-torture/compile/931003-1.c
gcc/testsuite/gcc.c-torture/compile/931004-1.c
gcc/testsuite/gcc.c-torture/compile/950719-1.c
gcc/testsuite/gcc.c-torture/compile/951222-1.c
gcc/testsuite/gcc.c-torture/compile/990517-1.c
gcc/testsuite/gcc.c-torture/compile/bcopy.c
gcc/testsuite/gcc.c-torture/compile/pr23929.c
gcc/testsuite/gcc.c-torture/compile/pr25310.c
gcc/testsuite/gcc.c-torture/compile/pr34458.c
gcc/testsuite/gcc.c-torture/compile/pr39937.c
gcc/testsuite/gcc.c-torture/compile/pr41181.c
gcc/testsuite/gcc.c-torture/compile/pr41634.c
gcc/testsuite/gcc.c-torture/compile/pr43415.c
gcc/testsuite/gcc.c-torture/compile/pr43417.c
gcc/testsuite/gcc.c-torture/compile/pr44788.c
gcc/testsuite/gcc.c-torture/compile/sound.c

index b3e141657abec530295c723b647e03896149474a..0a8c405e8aac313bbea7e2ca8568254610a78350 100644 (file)
@@ -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>
 
        * gcc.target/arm/pr91684.c: Use effective-target arm_prefer_ldrd_strd.
index f03aa35a7acec1e1675afb0f3b903c10c34f1d70..e41701cc6d9fb1308b385c31c35787ee5c69e356 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "1024" } */
+
 int main ()
 {
   char temp[1024] = "tempfile";
index 35464c212d2dfe909259b15fe4780e57e6a5003e..550669b53a3d1a3283f90d4cbd029a096c9060c7 100644 (file)
@@ -6,6 +6,7 @@
 /* { 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 ()
index 3940d5ffd2ebd7f1efd945594c57306dbe298098..046c5d69c94fd6c0decef59bb14afbd388272c5e 100644 (file)
@@ -4,6 +4,8 @@
    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;
index d2e186a7182c7d91b8b2510a1da70240d37aae6a..4846f7997a39e8bab8172347d9bcfc4560ee8ee6 100644 (file)
@@ -1,6 +1,7 @@
 /* { 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
index 789b8a8b176fa929c8c5ae42193c23e981568fd0..9753876c2d7e207141ccc0baea28ac5727b7c280 100644 (file)
@@ -1,4 +1,5 @@
 /* PR target/7370.  */
+/* { dg-require-stack-size "4000 + 8" } */
 
 int g (int *x, int *y);
 
index 22154b30af5b0ae5a0dd4ef407f90e07f0f78698..0261acd2c3052c46fa76cfd8fe8f781f315c2af1 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-require-effective-target int32plus } */
 /* { dg-require-effective-target size32plus } */
+/* { dg-require-stack-size "128*1024" } */
 
 void crc()
 {
index 1bd4079b4c8251fffd08ef165635ee45fdc5e958..05396d3dcc1df79ed9af0c1ab93a7fb44b4554eb 100644 (file)
@@ -1,4 +1,6 @@
 /* This test used to ICE on ARM with -mcpu=iwmmxt.  */
+/* { dg-require-stack-size "249*8+1" } */
+
 void
 foo (void)
 {
index 27b871616b1ac17d648d7839e88ed0a5b1820523..fecf5317734cd6a43490e80169bac0ff3623dd99 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/34371 */
+/* { dg-require-stack-size "1108" } */
 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
 
 void centerln (int width, int ch, char *s)
index 180b926bf3da864a318ff75bae11b7ee5d619171..d446ebf7c9398889f7282bf92424fc9da6881d56 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "4096" } */
+
 struct bar { unsigned short length; };
 
 int
index 3d3ff31f69b24dac63ec8e39a92c6cd669728ec2..7c92f3fa43685ea3f7d1c4172bec5fc5852ffeb2 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "1024+16" } */
+
 extern int nc;
 void f(void)
 {
index e41f6c1dca9eed59a13e8a50d0efc9a529254659..a6bac5d7e1f6eb91f9c231b09bc3d8faf4f54459 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target size20plus } */
+/* { dg-require-stack-size "32753*2" } */
 
 typedef __SIZE_TYPE__ size_t;
 
index 68892a689dfb578bb6e1edce9fdd854164a98eea..089de4dcddbb6260ff030c048d48897d7cdf65e1 100644 (file)
@@ -1,5 +1,6 @@
 /* { 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;}
index 10736ae76a470ff7834a86de6c105361f6a5be98..2ef54b5d35d45d62162d443a79e4d83d210bdd60 100644 (file)
@@ -1,6 +1,7 @@
 /* { 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 ()
 {
index cd8710be7e87ba76d752d791b1102c4d4578107a..2d778759e13cff1aca476f2b110537b717d23a87 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-add-options stack_size } */
+/* { dg-require-stack-size "75*75*4" } */
 
 #if defined(STACK_SIZE) && STACK_SIZE < 65536
 # define GITT_SIZE 75
index 1287edc57b8afa1051f4279f8503e1fd194c3520..d97ddf6144e599352e85a1fa465ddcdf0b649927 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "2055*3*8" } */
+
 f ()
 {
   long dx[2055];
index 922b14379c9b3f4846e548553836afbafc8814f3..637b9aa6d26265d5f10b709c9e66f7daabe17d38 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "52*8" } */
+
 f (n, a)
      int n;
      double a[];
index 0e741fd4ac078d3d574c905b3a96c892f13bfff8..d5796cee97dc78ee60008dfc6eeefef863c27656 100644 (file)
@@ -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 B A,A
 #define C B,B,B,B
index d3277fada4ee8b0516752566daf2294605bb5750..e1ac117daeb633ca2a4fc92b20a9d865c6099d98 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "4092+4" } */
+
 typedef struct
 {
   int Header;
index b8246f5fe81f1db8c5cea2f845614177b52e2f8d..f1818e322cf1e117bcbf6aeea0d1f9849c540526 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "10000+3*8" } */
+
 extern long long foo ();
 
 long long
index c738d4be760866101984209ce19fec130c098923..afdd844e305e1e7ebd74fa142486d842521eb2e9 100644 (file)
@@ -1,4 +1,7 @@
 /* Extracted from the sdm module in perl.  */
+
+/* { dg-require-stack-size "12*2+8+1024+8" } */
+
 typedef struct {
        char *dptr;
        int dsize;
index 8108f296600c965974ad67b0569096b038ee26e6..fce95c842f3fd4f385be48fedf40b8625f97275f 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-add-options stack_size } */
+/* { dg-require-stack-size "[dg-effective-target-value stack_size]*2" } */
 
 void
 bcopy1 (s, d, c)
index 210bb585e0645b33fc69ec767504c28578171db2..2ec658421d997cef2e487ccae27c1a06203d721c 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/23929 */
+/* { dg-require-stack-size "2048+8" } */
 
 extern void bar (char *);
 
index 54695e05b4f5c7cade165dc28aac893579729d95..7bdd0c574bdfd70d6c92d2bb8975a12d1d96174f 100644 (file)
@@ -1,4 +1,5 @@
 /* { 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
index 096cc0c9b89e7d37146dad1e4c75d342aff18126..77154937a63f8a521299d927ea5a090c48d79ac7 100644 (file)
@@ -1,4 +1,5 @@
 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
+/* { dg-require-stack-size "1025*4" } */
 
 typedef struct
 {
index d0231053258bf4355249bcefb96627d9c1aa02fd..df280535f1fb92cb22c947577fb0f111b5bc4460 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "4096" } */
+
 int foo (__const char *__restrict __s);
 static void 
 read_anisou(char line[])
index f866249b6057e973feeb5ed6c8374e281708a9af..4e12d3746812623ad6f5355ac850867d347dec48 100644 (file)
@@ -1,5 +1,7 @@
 /* { 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)
 {
index 976e463e2ba80a4a719bdf04ec4255ff0dec74ad..afad6d211bba7146dfed1f15ff6324b77552558d 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "2*512 + 256" } */
+
 extern int _xgetw();
 extern int foo(char*);
 
index c00e1c41ce9d8f13ec95c1247500e28e20309aa6..66afe99a06bd39a9c87ec3251a31285b8c066ac3 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "256*8+4" } */
+
 int main()                                                                      
 {                                                                               
   unsigned long long table[256];                                          
index 45bf053a0cb135a3b5c08adf82ebf538f34baac5..5ae98be35b3a1a713777f0bcf03907bd07873e2c 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "1004*4+2*8" } */
+
 int pid_count = 0;
 
 unsigned int getopt (int, const char**, const char*);
index 99dc79823947dcdc763ec37e5aacdca634fd89f9..b570f65ff92eaf5f5882371b555b2a38d5e7c44c 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-stack-size "1060*4+4" } */
+
 void joint_decode(float* mlt_buffer1, int t) {
     int i;
     float decode_buffer[1060];
index be727e3febb0ce00eb9d81b66190524888839934..66e24a00f68bf62b3e3d03c1138715b6652d3b0a 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-stack-size "8192+4" } */
 
 main ()
 {