From: Paul Koning Date: Fri, 25 May 2018 20:59:28 +0000 (-0400) Subject: Fix test case failures for pdp11 target. X-Git-Tag: basepoints/gcc-10~6449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99dcfb5fc184d4eeb2753ae9475bda4d58266161;p=thirdparty%2Fgcc.git Fix test case failures for pdp11 target. * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 62862e5b3f79..ab853d00cba7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-05-25 Paul Koning + + * 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 PR target/85832 diff --git a/gcc/testsuite/gcc.c-torture/compile/20151204.c b/gcc/testsuite/gcc.c-torture/compile/20151204.c index e07e13d48781..6a46abf72257 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20151204.c +++ b/gcc/testsuite/gcc.c-torture/compile/20151204.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "Array too big" { "avr-*-*" } } */ +/* { dg-skip-if "Array too big" { "avr-*-*" "pdp11-*-*" } } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr55921.c b/gcc/testsuite/gcc.c-torture/compile/pr55921.c index 94b7bceb87c5..de0635d66ad0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr55921.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr55921.c @@ -1,4 +1,5 @@ /* PR tree-optimization/55921 */ +/* { dg-skip-if "Not enough registers" { "pdp11-*-*" } } */ typedef union { diff --git a/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c b/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c index 31efb4ba8221..6911e0d278ed 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c @@ -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; diff --git a/gcc/testsuite/gcc.c-torture/compile/vector-align-1.c b/gcc/testsuite/gcc.c-torture/compile/vector-align-1.c index dc97ba6ca241..825ef7cd69ff 100644 --- a/gcc/testsuite/gcc.c-torture/compile/vector-align-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/vector-align-1.c @@ -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)));