From: Georg-Johann Lay Date: Fri, 2 Feb 2018 12:24:34 +0000 (+0000) Subject: Reduce fallout for avr. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce2e6077501a916681c64b8c579c1c6fa674ede9;p=gcc.git Reduce fallout for avr. * lib/target-supports.exp (check_effective_target_keeps_null_pointer_checks): No more special-case avr. * gcc.dg/tree-ssa/pr21086.c (dg-final): Special-case avr. * gcc.dg/ifcvt-4.c: Skip avr. * gcc.dg/pr53037-1.c: Dito. * gcc.dg/pr53037-2.c: Dito. * gcc.dg/pr53037-3.c: Dito. * gcc.dg/pr63387-2.c: Dito. * gcc.dg/pr63387.c: Dito. * gcc.dg/sancov/cmp0.c: Dito. * gcc.dg/tree-ssa/loop-interchange-1.c: Dito. * gcc.dg/tree-ssa/loop-interchange-10.c: Dito. * gcc.dg/tree-ssa/loop-interchange-11.c: Dito. * gcc.dg/tree-ssa/loop-interchange-1b.c: Dito. * gcc.dg/tree-ssa/loop-interchange-2.c: Dito. * gcc.dg/tree-ssa/loop-interchange-3.c: Dito. * gcc.dg/tree-ssa/loop-interchange-4.c: Dito. * gcc.dg/tree-ssa/loop-interchange-5.c: Dito. * gcc.dg/tree-ssa/loop-interchange-6.c: Dito. * gcc.dg/tree-ssa/loop-interchange-7.c: Dito. * gcc.dg/tree-ssa/loop-interchange-8.c: Dito. * gcc.dg/tree-ssa/loop-interchange-9.c: Dito. * gcc.dg/tree-ssa/pr82059.c: Dito. * gcc.c-torture/execute/pr70460.c: Dito. From-SVN: r257328 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6bc8ede0314..21c8134e65b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,31 @@ +2018-02-02 Georg-Johann Lay + + * lib/target-supports.exp + (check_effective_target_keeps_null_pointer_checks): No more + special-case avr. + * gcc.dg/tree-ssa/pr21086.c (dg-final): Special-case avr. + * gcc.dg/ifcvt-4.c: Skip avr. + * gcc.dg/pr53037-1.c: Dito. + * gcc.dg/pr53037-2.c: Dito. + * gcc.dg/pr53037-3.c: Dito. + * gcc.dg/pr63387-2.c: Dito. + * gcc.dg/pr63387.c: Dito. + * gcc.dg/sancov/cmp0.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-1.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-10.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-11.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-1b.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-2.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-3.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-4.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-5.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-6.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-7.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-8.c: Dito. + * gcc.dg/tree-ssa/loop-interchange-9.c: Dito. + * gcc.dg/tree-ssa/pr82059.c: Dito. + * gcc.c-torture/execute/pr70460.c: Dito. + 2018-02-02 Georg-Johann Lay PR testsuite/52641 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr70460.c b/gcc/testsuite/gcc.c-torture/execute/pr70460.c index acc57511ae2..04fa1efc199 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr70460.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr70460.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target indirect_jumps } */ /* { dg-require-effective-target label_values } */ +/* { dg-skip-if "label differences not supported" { avr-*-* } } */ /* PR rtl-optimization/70460 */ diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c b/gcc/testsuite/gcc.dg/ifcvt-4.c index 87bae3cbe44..52827abe3b0 100644 --- a/gcc/testsuite/gcc.dg/ifcvt-4.c +++ b/gcc/testsuite/gcc.dg/ifcvt-4.c @@ -2,7 +2,7 @@ /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */ /* { dg-additional-options "-march=z196" { target { s390x-*-* } } } */ /* { dg-additional-options "-mtune-ctrl=^one_if_conv_insn" { target { i?86-*-* x86_64-*-* } } } */ -/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* } } */ +/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* avr-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* } } */ /* { dg-skip-if "" { "s390x-*-*" } { "-m31" } } */ typedef int word __attribute__((mode(word))); diff --git a/gcc/testsuite/gcc.dg/pr53037-1.c b/gcc/testsuite/gcc.dg/pr53037-1.c index 93af0a50cd4..ce0715c32e4 100644 --- a/gcc/testsuite/gcc.dg/pr53037-1.c +++ b/gcc/testsuite/gcc.dg/pr53037-1.c @@ -1,6 +1,7 @@ /* PR c/53037. */ /* { dg-do compile } */ /* { dg-options "-O0" } */ +/* { dg-skip-if "" { avr-*-* } } */ typedef unsigned long long __u64 __attribute__((aligned(4),warn_if_not_aligned(8))); diff --git a/gcc/testsuite/gcc.dg/pr53037-2.c b/gcc/testsuite/gcc.dg/pr53037-2.c index f9934a63e17..f17fbf7da0c 100644 --- a/gcc/testsuite/gcc.dg/pr53037-2.c +++ b/gcc/testsuite/gcc.dg/pr53037-2.c @@ -1,6 +1,7 @@ /* PR c/53037. */ /* { dg-do compile } */ /* { dg-options "-O0 -Wpacked-not-aligned" } */ +/* { dg-skip-if "" { avr-*-* } } */ struct __attribute__ ((aligned (8))) S8 { char a[8]; }; struct __attribute__ ((packed)) S1 { diff --git a/gcc/testsuite/gcc.dg/pr53037-3.c b/gcc/testsuite/gcc.dg/pr53037-3.c index fc69ae8e52e..6960de0e991 100644 --- a/gcc/testsuite/gcc.dg/pr53037-3.c +++ b/gcc/testsuite/gcc.dg/pr53037-3.c @@ -1,6 +1,7 @@ /* PR c/53037. */ /* { dg-do compile } */ /* { dg-options "-O0 -Wall" } */ +/* { dg-skip-if "" { avr-*-* } } */ struct __attribute__ ((aligned (8))) S8 { char a[8]; }; struct __attribute__ ((packed)) S1 { diff --git a/gcc/testsuite/gcc.dg/pr63387-2.c b/gcc/testsuite/gcc.dg/pr63387-2.c index 0ce7ab21b88..61af6085140 100644 --- a/gcc/testsuite/gcc.dg/pr63387-2.c +++ b/gcc/testsuite/gcc.dg/pr63387-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ +/* { dg-skip-if "using short-double" { avr-*-* } } */ int f(double aaa, double bbb){ int xa = !__builtin_isunordered(aaa, aaa); diff --git a/gcc/testsuite/gcc.dg/pr63387.c b/gcc/testsuite/gcc.dg/pr63387.c index 1f1078483c4..12cddf3a60f 100644 --- a/gcc/testsuite/gcc.dg/pr63387.c +++ b/gcc/testsuite/gcc.dg/pr63387.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ +/* { dg-skip-if "using short-double" { avr-*-* } } */ int f(double aaa, double bbb){ int xa = __builtin_isunordered(aaa, aaa); diff --git a/gcc/testsuite/gcc.dg/sancov/cmp0.c b/gcc/testsuite/gcc.dg/sancov/cmp0.c index 3a17de91ce2..25a166a55d7 100644 --- a/gcc/testsuite/gcc.dg/sancov/cmp0.c +++ b/gcc/testsuite/gcc.dg/sancov/cmp0.c @@ -1,6 +1,7 @@ /* Basic test on number of inserted callbacks. */ /* { dg-do compile } */ /* { dg-options "-fsanitize-coverage=trace-cmp -fdump-tree-optimized" } */ +/* { dg-skip-if "different type layout" { avr-*-* } } */ void foo (char *a, short *b, int *c, long long *d, float *e, double *f) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1.c index e5d2895a17b..4a81e128e16 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fassociative-math -fno-signed-zeros -fno-trapping-math -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ /* Copied from graphite/interchange-4.c */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-10.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-10.c index 76c8318d724..57357569965 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-10.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ #define M 256 int a[M][M], b[M][M]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-11.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-11.c index a4d656ae830..2a1b340a07b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-11.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ #define M 256 int a[M][M], b[M][M]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1b.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1b.c index 27e0e2dc08e..7de2b403005 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1b.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1b.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ /* Copied from graphite/interchange-4.c */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-2.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-2.c index a1305e3e400..247adc98c70 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-2.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ /* Copied from graphite/interchange-5.c */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-3.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-3.c index e4515feb7e3..b239230157d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-3.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big stack" { visium-*-* } } */ +/* { dg-skip-if "too big stack" { avr-*-* visium-*-* } } */ /* Copied from graphite/interchange-6.c */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-4.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-4.c index 51dbbcd6a3f..009a3057c16 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-4.c @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ /* { dg-require-stack-size "8*111*1111" } */ -/* { dg-skip-if "too big stack" { visium-*-* } } */ +/* { dg-skip-if "too big stack" { avr-*-* visium-*-* } } */ /* Copied from graphite/interchange-7.c */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-5.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-5.c index ea19edd820b..8f13cd4617b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-5.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ #define M 256 int a[M][M], b[M][M], c[M][M], d[M][M]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-6.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-6.c index cedcc67a0e6..a38fd9d28d4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-6.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ #define M 256 int a[M][M], b[M][M], c[M][M], d[M][M]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-7.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-7.c index c475b7cf631..e6ad26f2a4e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-7.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ #define M 256 int a[M][M], b[M][M], c[M][M], d[M][M]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-8.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-8.c index b983107356b..5ed300aa165 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-8.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ #define M 256 int a[M][M], b[M][M], c[M][M], d[M][M]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-9.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-9.c index 210da8dc791..a984e47d854 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-9.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */ -/* { dg-skip-if "too big data segment" { visium-*-* } } */ +/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */ #define M 256 int a[M][M], b[M][M], c[M], d[M]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr21086.c b/gcc/testsuite/gcc.dg/tree-ssa/pr21086.c index 950371ba55d..aadd53e2237 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr21086.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr21086.c @@ -18,5 +18,3 @@ foo (int *p) /* Target disabling -fdelete-null-pointer-checks should not fold checks */ /* { dg-final { scan-tree-dump "Folding predicate " "vrp1" { target { ! keeps_null_pointer_checks } } } } */ /* { dg-final { scan-tree-dump-times "Folding predicate " 0 "vrp1" { target { keeps_null_pointer_checks } } } } */ -/* { dg-final { scan-tree-dump-not "b_. =" "dce2" { target { ! avr-*-* } } } } */ -/* { dg-final { scan-tree-dump "b_. =" "dce2" { target { avr-*-* } } } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr82059.c b/gcc/testsuite/gcc.dg/tree-ssa/pr82059.c index 0285b03cc04..6421101b867 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr82059.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr82059.c @@ -1,6 +1,7 @@ /* PR tree-optimization/82059 */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-isolate-paths" } */ +/* { dg-skip-if "accessing data memory with program memory address" { avr-*-* } } */ struct a { diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 8bb809503c6..8479290f62b 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -557,8 +557,7 @@ proc check_effective_target_keeps_null_pointer_checks { } { if [target_info exists keeps_null_pointer_checks] { return 1 } - if { [istarget avr-*-*] - || [istarget msp430-*-*] } { + if { [istarget msp430-*-*] } { return 1; } return 0