]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Skip several gcc.dg/builtin-dynamic-object-size tests on hppa*-*-hpux*
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 14 Jan 2024 20:29:25 +0000 (20:29 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 14 Jan 2024 20:29:25 +0000 (20:29 +0000)
hppa*-*-hpux* doesn't have strdup or strndup.

2024-01-14  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

* gcc.dg/builtin-dynamic-object-size-0.c: Skip on hppa*-*-hpux*.
* gcc.dg/builtin-dynamic-object-size-1.c: Likewise.
* gcc.dg/builtin-dynamic-object-size-2.c: Likewise.
* gcc.dg/builtin-dynamic-object-size-3.c: Likewise.
* gcc.dg/builtin-dynamic-object-size-4.c: Likewise.

gcc/testsuite/gcc.dg/builtin-dynamic-object-size-0.c
gcc/testsuite/gcc.dg/builtin-dynamic-object-size-1.c
gcc/testsuite/gcc.dg/builtin-dynamic-object-size-2.c
gcc/testsuite/gcc.dg/builtin-dynamic-object-size-3.c
gcc/testsuite/gcc.dg/builtin-dynamic-object-size-4.c

index c3ac6230d4de088895b45ee8fa623b16684dd2d1..173e7c755f4c900de56361266fc89a5222f0af76 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2" } */
 /* { dg-require-effective-target size20plus } */
+/* { dg-skip-if "no strndup" { hppa*-*-hpux* } } */
 
 #include "builtin-object-size-common.h"
 
index 8f17c8edcafd69c0fd15d04b067e34a836399878..ffa59985024f52f95857a9f428da45affa481d41 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -Wno-stringop-overread" } */
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "no strndup" { hppa*-*-hpux* } } */
 
 #define __builtin_object_size __builtin_dynamic_object_size
 #include "builtin-object-size-1.c"
index 3677782ff1ca9c974bd6023ff0f1656cbba040cc..fff32da7aea14c168d679f746a3416d58dadb8cf 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -Wno-stringop-overread" } */
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "no strndup" { hppa*-*-hpux* } } */
 
 #define __builtin_object_size __builtin_dynamic_object_size
 #include "builtin-object-size-2.c"
index 5b6987b777372dbb6f2f13e656e5773d89700eb3..ac223d67b10a4eed0ceeaeb801c3f7038b465356 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -Wno-stringop-overread" } */
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "no strndup" { hppa*-*-hpux* } } */
 
 #define __builtin_object_size __builtin_dynamic_object_size
 #include "builtin-object-size-3.c"
index 9d796224e96c9a7159c2851250260b348da22212..fdf4284ae11586b935028176815dd2c4c606031b 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -Wno-stringop-overread" } */
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "no strndup" { hppa*-*-hpux* } } */
 
 #define __builtin_object_size __builtin_dynamic_object_size
 #include "builtin-object-size-4.c"