Sorry, it's been a while, previous message was incomplete.

This fixes a number of test failures due to test cases 
that are too large for pdp11 and should be skipped.  Also
one test case that asks for alignment larger than what
pdp11 supports.

 paul


        2018-05-25 Paul Koning <n...@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.

Index: testsuite/gcc.c-torture/compile/pr55921.c
===================================================================
--- testsuite/gcc.c-torture/compile/pr55921.c   (revision 260780)
+++ testsuite/gcc.c-torture/compile/pr55921.c   (revision 260781)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/55921 */
+/* { dg-skip-if "Not enough registers" { "pdp11-*-*" } } */
 
 typedef union
 {
Index: testsuite/gcc.c-torture/compile/vector-align-1.c
===================================================================
--- testsuite/gcc.c-torture/compile/vector-align-1.c    (revision 260780)
+++ testsuite/gcc.c-torture/compile/vector-align-1.c    (revision 260781)
@@ -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)));
 
Index: testsuite/gcc.c-torture/compile/20151204.c
===================================================================
--- testsuite/gcc.c-torture/compile/20151204.c  (revision 260780)
+++ testsuite/gcc.c-torture/compile/20151204.c  (revision 260781)
@@ -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: testsuite/gcc.c-torture/compile/pr60655-1.c
===================================================================
--- testsuite/gcc.c-torture/compile/pr60655-1.c (revision 260780)
+++ testsuite/gcc.c-torture/compile/pr60655-1.c (revision 260781)
@@ -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;

Reply via email to