From 9f6dd268194d10c09a44396cb6e9041f6dd82fde Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 29 Feb 2020 20:16:39 +0000 Subject: [PATCH] Fix/skip various tests for hppa*-*-hpux*. 2020-02-29 John David Anglin * g++.dg/pr90981.C: Skip on hppa*-*-hpux*. * gcc.dg/gnu2x-attrs-1.c: Add dg-require-alias. * gcc.dg/pr90756.c: Add -fno-common option on hppa*-*-hpux*. * gcc.dg/torture/20190327-1.c: Likewise. * gcc.dg/spellcheck-options-21.c: Skip on 32-bit hppa*-*-hpux*. * gcc.dg/strlenopt-68.c: Skip on hppa*-*-hpux*. * gcc.dg/torture/pr90020.c: Likewise. * gcc.dg/ucnid-16-utf8.c: Add dg-require-iconv "latin1". --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/g++.dg/pr90981.C | 1 + gcc/testsuite/gcc.dg/gnu2x-attrs-1.c | 1 + gcc/testsuite/gcc.dg/pr90756.c | 1 + gcc/testsuite/gcc.dg/spellcheck-options-21.c | 1 + gcc/testsuite/gcc.dg/strlenopt-68.c | 1 + gcc/testsuite/gcc.dg/torture/20190327-1.c | 1 + gcc/testsuite/gcc.dg/torture/pr90020.c | 1 + gcc/testsuite/gcc.dg/ucnid-16-utf8.c | 1 + 9 files changed, 17 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4144c26568c..b6c59c6aa2e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2020-02-29 John David Anglin + * g++.dg/pr90981.C: Skip on hppa*-*-hpux*. + * gcc.dg/gnu2x-attrs-1.c: Add dg-require-alias. + * gcc.dg/pr90756.c: Add -fno-common option on hppa*-*-hpux*. + * gcc.dg/torture/20190327-1.c: Likewise. + * gcc.dg/spellcheck-options-21.c: Skip on 32-bit hppa*-*-hpux*. + * gcc.dg/strlenopt-68.c: Skip on hppa*-*-hpux*. + * gcc.dg/torture/pr90020.c: Likewise. + * gcc.dg/ucnid-16-utf8.c: Add dg-require-iconv "latin1". + PR ipa/92548 * gcc.dg/ipa/ipa-sra-12.c: xfail parameter split test on 32-bit hppa*-*-hpux*. diff --git a/gcc/testsuite/g++.dg/pr90981.C b/gcc/testsuite/g++.dg/pr90981.C index 5a273027908..b88d6e88b68 100644 --- a/gcc/testsuite/g++.dg/pr90981.C +++ b/gcc/testsuite/g++.dg/pr90981.C @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-skip-if "No dwarf debug support" { hppa*-*-hpux* } } */ /* { dg-options "-O2 -g -gdwarf-5 -gsplit-dwarf" } */ /* No addresses in the DWARF, so no .debug_addr section, diff --git a/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c b/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c index 87bdaec0807..2007911e720 100644 --- a/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c +++ b/gcc/testsuite/gcc.dg/gnu2x-attrs-1.c @@ -1,6 +1,7 @@ /* Test C2x attribute syntax. Test GNU attributes appertain to appropriate constructs. */ /* { dg-do compile } */ +/* { dg-require-alias "" } */ /* { dg-options "-std=gnu2x" } */ void f (void) {}; diff --git a/gcc/testsuite/gcc.dg/pr90756.c b/gcc/testsuite/gcc.dg/pr90756.c index 3507aa29e70..a4ba64acd72 100644 --- a/gcc/testsuite/gcc.dg/pr90756.c +++ b/gcc/testsuite/gcc.dg/pr90756.c @@ -2,6 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -Wno-psabi" } */ /* { dg-additional-options "-mno-sse" { target ia32 } } */ +/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ typedef float B __attribute__((vector_size(4 * sizeof (float)))); typedef unsigned long long C __attribute__((vector_size(4 * sizeof (long long)))); diff --git a/gcc/testsuite/gcc.dg/spellcheck-options-21.c b/gcc/testsuite/gcc.dg/spellcheck-options-21.c index 3e0e8a8ebaf..92fcb020e12 100644 --- a/gcc/testsuite/gcc.dg/spellcheck-options-21.c +++ b/gcc/testsuite/gcc.dg/spellcheck-options-21.c @@ -1,3 +1,4 @@ /* { dg-do compile } */ +/* { dg-skip-if "-flto not supported" { { hppa*-*-hpux* } && { ! lp64 } } } */ /* { dg-options "-flto=sparta" } */ /* { dg-error "unrecognized argument to '-flto=' option: 'sparta'" "" { target *-*-* } 0 } */ diff --git a/gcc/testsuite/gcc.dg/strlenopt-68.c b/gcc/testsuite/gcc.dg/strlenopt-68.c index 56d314e5d45..f77162f2c9d 100644 --- a/gcc/testsuite/gcc.dg/strlenopt-68.c +++ b/gcc/testsuite/gcc.dg/strlenopt-68.c @@ -3,6 +3,7 @@ the expected result regardless of the order of the expression operands. { dg-do run } + { dg-skip-if "UNIX 2003 return behavior not supported" { hppa*-*-hpux* } } { dg-options "-O2 -Wall" } */ #include "strlenopt.h" diff --git a/gcc/testsuite/gcc.dg/torture/20190327-1.c b/gcc/testsuite/gcc.dg/torture/20190327-1.c index bb20e7fba99..45093da768c 100644 --- a/gcc/testsuite/gcc.dg/torture/20190327-1.c +++ b/gcc/testsuite/gcc.dg/torture/20190327-1.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ typedef long v2di __attribute__((vector_size(16))); v2di v; diff --git a/gcc/testsuite/gcc.dg/torture/pr90020.c b/gcc/testsuite/gcc.dg/torture/pr90020.c index 1748243852a..27d1ea41ddd 100644 --- a/gcc/testsuite/gcc.dg/torture/pr90020.c +++ b/gcc/testsuite/gcc.dg/torture/pr90020.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-skip-if "No undefined weak" { hppa*-*-hpux* } } */ /* { dg-require-weak "" } */ /* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */ /* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */ diff --git a/gcc/testsuite/gcc.dg/ucnid-16-utf8.c b/gcc/testsuite/gcc.dg/ucnid-16-utf8.c index 5d000a0758a..0b9befa4ad8 100644 --- a/gcc/testsuite/gcc.dg/ucnid-16-utf8.c +++ b/gcc/testsuite/gcc.dg/ucnid-16-utf8.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-iconv "latin1" } */ /* { dg-options "-std=c99 -g -finput-charset=latin1" } */ /* { dg-final { scan-file ucnid-16-utf8.s "²" } } */ -- 2.30.2