Fix test case failures for pdp11 target.
authorPaul Koning <ni1d@arrl.net>
Fri, 22 Jun 2018 14:34:37 +0000 (10:34 -0400)
committerPaul Koning <pkoning@gcc.gnu.org>
Fri, 22 Jun 2018 14:34:37 +0000 (10:34 -0400)
* gcc.c-torture/execute/builtins/lib/chk.c: Use smaller alignment
if pdp11.
* gcc.c-torture/compile/20010518-2.c: Skip if pdp11 -mint32.
* gcc.c-torture/compile/20040101-1.c: Ditto.
* gcc.c-torture/compile/20050622-1.c: Ditto.
* gcc.c-torture/compile/20080625-1.c: Ditto.
* gcc.c-torture/compile/20090107-1.c: Ditto.
* gcc.c-torture/compile/920501-12.c: Ditto.
* gcc.c-torture/compile/920501-4.c: Ditto.
* gcc.c-torture/compile/961203-1.c: Ditto.
* gcc.c-torture/compile/limits-externdecl.c: Ditto.
* gcc.c-torture/compile/pr25310.c: Ditto.

From-SVN: r261897

12 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20010518-2.c
gcc/testsuite/gcc.c-torture/compile/20040101-1.c
gcc/testsuite/gcc.c-torture/compile/20050622-1.c
gcc/testsuite/gcc.c-torture/compile/20080625-1.c
gcc/testsuite/gcc.c-torture/compile/20090107-1.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/961203-1.c
gcc/testsuite/gcc.c-torture/compile/limits-externdecl.c
gcc/testsuite/gcc.c-torture/compile/pr25310.c
gcc/testsuite/gcc.c-torture/execute/builtins/lib/chk.c

index 655a4405b417d8817af7cb871f618bc459214cd9..b3bb851c8abffd4801d1ac336fbac6e070f70319 100644 (file)
@@ -1,3 +1,18 @@
+2018-06-22  Paul Koning  <ni1d@arrl.net>
+
+       * gcc.c-torture/execute/builtins/lib/chk.c: Use smaller alignment
+       if pdp11.
+       * gcc.c-torture/compile/20010518-2.c: Skip if pdp11 -mint32.
+       * gcc.c-torture/compile/20040101-1.c: Ditto.
+       * gcc.c-torture/compile/20050622-1.c: Ditto.
+       * gcc.c-torture/compile/20080625-1.c: Ditto.
+       * gcc.c-torture/compile/20090107-1.c: Ditto.
+       * gcc.c-torture/compile/920501-12.c: Ditto.
+       * gcc.c-torture/compile/920501-4.c: Ditto.
+       * gcc.c-torture/compile/961203-1.c: Ditto.
+       * gcc.c-torture/compile/limits-externdecl.c: Ditto.
+       * gcc.c-torture/compile/pr25310.c: Ditto.
+
 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
            James Norris  <jnorris@codesourcery.com>
            Thomas Schwinge  <thomas@codesourcery.com>
index 9ff50474223acf7337ef3963f9888cd95da65eba..0a1bb74f9b13cbba0d743ad8647928ed454b4abd 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 
 /* Large static storage.  */
 
index baa0e4f93e1b66d4bf8ed1cf15c7cf523de04cf8..5c2688ad830f6681a3046907216e46ebe66af6bf 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-skip-if "not enough registers" { pdp11-*-* } { "-O[12s]" } { "" } } */
+/* { dg-skip-if "not enough registers" { pdp11-*-* } } */
 
 typedef unsigned short uint16_t;
 typedef unsigned int uint32_t;
index db183909f401e67ece7f0bca88e466392f7fdb8d..829f9dd857d3c7367ab73b59b21914429bf676fe 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
+
 #if __SCHAR_MAX__ == 127 && __INT_MAX__ >= 2147483647
 struct S { char buf[72*1024*1024]; };
 #else
index 4b3b7c2c142e52c31b61d443925d651f4adb6a93..33e2d63508d4906e6edad8fc97c6c231500e2ce5 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target int32plus } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 
 struct peakbufStruct {
     unsigned int lnum [5000];
index b5d4c1a446622665c876e596f739b49cc20fd1af..75a80fdfff93ebf9811e489decf476aaa812be29 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
+
 /* Verify that we don't ICE by forming invalid addresses for unaligned
    doubleword loads (originally for PPC64).  */
 
index 383c7182df26da539c8c4e40f5f848b686db70fc..68892a689dfb578bb6e1edce9fdd854164a98eea 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do assemble } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 
 x(x){            return 3 + x;}
 a(x){int y[994]; return 3 + x;}
index 362f2b764d88be7029ef6bbec5a8d96fac8c3057..10736ae76a470ff7834a86de6c105361f6a5be98 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do assemble } */
 /* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 
 foo ()
 {
index 98908584333d6153862e3792ecec228058bd5995..91823524a2e58cde96b0d92a6a25ed34d3a13d41 100644 (file)
@@ -1,6 +1,7 @@
 /* The structure is too large for the xstormy16 - won't fit in 16
    bits.  */
 /* { dg-do assemble } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 
 #if __INT_MAX__ >= 2147483647L
 struct s {
index c2338491b4f2e924fc75a9a22f5fed0862b57ea1..d3828015a75dd1d19fb35c72e5beb669604fc20f 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-skip-if "ptxas runs out of memory" { nvptx-*-* } } */
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 
 /* { dg-require-effective-target int32plus } */
 /* Inspired by the test case for PR middle-end/52640.  */
index 71081d821112265a221ea67e54270a969f87c0d3..54695e05b4f5c7cade165dc28aac893579729d95 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
 
 /* Prevent spurious test failures on 16-bit targets.  */
 #if __INT_MAX__ >= 2147483647L
index b19d7bf813f682c34978b266ba1a148f4e7ce155..fd9e6015faac9a0ee94d2bad9e3f29f4a54587e1 100644 (file)
@@ -3,10 +3,18 @@
 #include <sys/types.h>
 #endif
 
+/* If some target has a Max alignment less than 16, please create
+   a #ifdef around the alignment and add your alignment.  */
+#ifdef __pdp11__
+#define ALIGNMENT 2
+#else
+#define ALIGNMENT 16
+#endif
+
 extern void abort (void);
 
 extern int inside_main;
-void *chk_fail_buf[256] __attribute__((aligned (16)));
+void *chk_fail_buf[256] __attribute__((aligned (ALIGNMENT)));
 volatile int chk_fail_allowed, chk_calls;
 volatile int memcpy_disallowed, mempcpy_disallowed, memmove_disallowed;
 volatile int memset_disallowed, strcpy_disallowed, stpcpy_disallowed;