Fix/skip various tests for hppa*-*-hpux*.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 20:16:39 +0000 (20:16 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 20:16:39 +0000 (20:16 +0000)
2020-02-29  John David Anglin  <danglin@gcc.gnu.org>

* 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
gcc/testsuite/g++.dg/pr90981.C
gcc/testsuite/gcc.dg/gnu2x-attrs-1.c
gcc/testsuite/gcc.dg/pr90756.c
gcc/testsuite/gcc.dg/spellcheck-options-21.c
gcc/testsuite/gcc.dg/strlenopt-68.c
gcc/testsuite/gcc.dg/torture/20190327-1.c
gcc/testsuite/gcc.dg/torture/pr90020.c
gcc/testsuite/gcc.dg/ucnid-16-utf8.c

index 4144c26..b6c59c6 100644 (file)
@@ -1,5 +1,14 @@
 2020-02-29  John David Anglin  <danglin@gcc.gnu.org>
 
+       * 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*.
index 5a27302..b88d6e8 100644 (file)
@@ -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,
index 87bdaec..2007911 100644 (file)
@@ -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) {};
index 3507aa2..a4ba64a 100644 (file)
@@ -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))));
index 3e0e8a8..92fcb02 100644 (file)
@@ -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 } */
index 56d314e..f77162f 100644 (file)
@@ -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"
index bb20e7f..45093da 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 typedef long v2di __attribute__((vector_size(16)));
 v2di v;
index 1748243..27d1ea4 100644 (file)
@@ -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]* } } */
index 5d000a0..0b9befa 100644 (file)
@@ -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 "²" } } */