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 4144c26568c628703fa2e5123c38d3b61ee48535..b6c59c6aa2e040b039c9327b084e0ede37938bb9 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 5a273027908b462e7a32ce559a9494fbcd3dc753..b88d6e88b6819aa63e95dcc80691092218f879bf 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 87bdaec0807677d4cf136abbbb083107e3a14afb..2007911e7200eb1c7ae11eaa7673708fbf6b92b0 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 3507aa29e70b1114c3929258d54f3f6f6663dc42..a4ba64acd729c2e3c352fd026b5706aeadcf64d3 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 3e0e8a8ebaf16e18822a861f85415470a2ed4d8c..92fcb020e12f1b27bf23243be6faeb09fe74fb2c 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 56d314e5d453583cb0733b9488d56b45d42f8a2e..f77162f2c9dbd336b64fe0c89ee1e03af813b8b1 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 bb20e7fba99ef449ba2b14b7dd80a4c23b154f97..45093da768c4eb4e04ac168450edf1ec8357fa31 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 1748243852a8cc93cbcd53b22d5afcab4719c00c..27d1ea41dddbd6e0ec062c063b1c77359b8a140c 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 5d000a0758a0a4ffb4400679d43504bd7527e2fb..0b9befa4ad8f79affe3120bf488c50340d71122b 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 "²" } } */