From: Paul Koning Date: Fri, 25 May 2018 20:59:28 +0000 (-0400) Subject: Fix test case failures for pdp11 target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99dcfb5fc184d4eeb2753ae9475bda4d58266161;p=gcc.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 62862e5b3f7..ab853d00cba 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 e07e13d4878..6a46abf7225 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 94b7bceb87c..de0635d66ad 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 31efb4ba822..6911e0d278e 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 dc97ba6ca24..825ef7cd69f 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)));