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 62862e5..ab853d0 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 e07e13d..6a46abf 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 94b7bce..de0635d 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/55921 */
+/* { dg-skip-if "Not enough registers" { "pdp11-*-*" } } */
 
 typedef union
 {
index 31efb4b..6911e0d 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 dc97ba6..825ef7c 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)));