Fix test case failures for pdp11 target.
authorPaul Koning <ni1d@arrl.net>
Fri, 25 May 2018 20:59:28 +0000 (16:59 -0400)
committerPaul Koning <pkoning@gcc.gnu.org>
Fri, 25 May 2018 20:59:28 +0000 (16:59 -0400)
* gcc.c-torture/compile/20151204.c: Skip if pdp11.
* gcc.c-torture/compile/pr55921.c: Ditto.
* gcc.c-torture/compile/pr60655-1.c: Ditto.
* gcc.c-torture/compile/vector-align-1.c: Add max alignment if pdp11.

From-SVN: r260781

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20151204.c
gcc/testsuite/gcc.c-torture/compile/pr55921.c
gcc/testsuite/gcc.c-torture/compile/pr60655-1.c
gcc/testsuite/gcc.c-torture/compile/vector-align-1.c

index 62862e5b3f79d2112f1084d83040c710493fb9c9..ab853d00cba78203986136f254865a443fee834f 100644 (file)
@@ -1,3 +1,10 @@
+2018-05-25  Paul Koning  <ni1d@arrl.net>
+
+       * gcc.c-torture/compile/20151204.c: Skip if pdp11.
+       * gcc.c-torture/compile/pr55921.c: Ditto.
+       * gcc.c-torture/compile/pr60655-1.c: Ditto.
+       * gcc.c-torture/compile/vector-align-1.c: Add max alignment if pdp11.
+
 2018-05-25  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/85832
index e07e13d48781493dd13bbaf84e62335be94de8cd..6a46abf722572d22316b3c952c99c99070adeebf 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-skip-if "Array too big" { "avr-*-*" } } */
+/* { dg-skip-if "Array too big" { "avr-*-*" "pdp11-*-*" } } */
 
 typedef __SIZE_TYPE__ size_t;
 
index 94b7bceb87c5a49c1f1672ce05d78ca2c253f7ae..de0635d66ad0dbacfe1a5ab699dfe7b5fbbc68ba 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/55921 */
+/* { dg-skip-if "Not enough registers" { "pdp11-*-*" } } */
 
 typedef union
 {
index 31efb4ba8221db316940b6d852cd5a6c39d1f887..6911e0d278ed5eb8cb1a9fa1e3b7441521cbf7ba 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-fdata-sections" { target { { ! { { hppa*-*-hpux* } && { ! lp64 } } } && { ! nvptx-*-* } } } } */
+/* { dg-options "-fdata-sections" { target { { ! { { hppa*-*-hpux* } && { ! lp64 } } } && { ! "nvptx-*-* pdp11-*-*" } } } } */
 
 typedef unsigned char unit;
 typedef unit *unitptr;
index dc97ba6ca24166885a7f806f01a317e4af9abac8..825ef7cd69ff4921c9cc0b1d3612a53f95bcfe21 100644 (file)
@@ -2,7 +2,11 @@
 
 /* If some target has a Max alignment less than 128, please create
    a #ifdef around the alignment and add your alignment.  */
+#ifdef __pdp11__
+#define alignment 2
+#else
 #define alignment 128
+#endif
 
 char x __attribute__((aligned(alignment),vector_size(2)));