aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-01-14 20:48:15 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2024-01-14 20:48:15 +0000
commit5f6557b3c61134c762fa442e4f711317c372f364 (patch)
treef2100bdad96a6adf056c79b7c2cd915bc4cdb9bd
parent5129b4cde0a8ef21a34bcb20939cd39e88546ca1 (diff)
downloadgcc-5f6557b3c61134c762fa442e4f711317c372f364.zip
gcc-5f6557b3c61134c762fa442e4f711317c372f364.tar.gz
gcc-5f6557b3c61134c762fa442e4f711317c372f364.tar.bz2
Disable tests for strdup/strndup on __hpux__
hppa*-*-hpux* doesn't have strdup or strndup. 2024-01-14 John David Anglin <danglin@gcc.gnu.org> gcc/testsuite/ChangeLog: * gcc.dg/builtin-object-size-1.c: Disable tests for strdup/strndup on __hpux__. * gcc.dg/builtin-object-size-2.c: Likewise. * gcc.dg/builtin-object-size-3.c: Likewise. * gcc.dg/builtin-object-size-4.c: Likewise.
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-1.c4
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-2.c4
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-3.c4
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-4.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-1.c b/gcc/testsuite/gcc.dg/builtin-object-size-1.c
index 64c4bc4..4f7d4c0 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-1.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-1.c
@@ -621,7 +621,7 @@ test10 (void)
}
}
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
/* Tests for strdup/strndup. */
size_t
__attribute__ ((noinline))
@@ -726,7 +726,7 @@ main (void)
test8 ();
test9 (1);
test10 ();
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
test11 ();
#endif
DONE ();
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-2.c b/gcc/testsuite/gcc.dg/builtin-object-size-2.c
index da10b6b..37d3dcc 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-2.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-2.c
@@ -536,7 +536,7 @@ test8 (unsigned cond)
#endif
}
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
/* Tests for strdup/strndup. */
size_t
__attribute__ ((noinline))
@@ -639,7 +639,7 @@ main (void)
test6 ();
test7 ();
test8 (1);
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
test9 ();
#endif
DONE ();
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-3.c b/gcc/testsuite/gcc.dg/builtin-object-size-3.c
index f23873b..f4d1ebf 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-3.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-3.c
@@ -628,7 +628,7 @@ test10 (void)
}
}
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
/* Tests for strdup/strndup. */
size_t
__attribute__ ((noinline))
@@ -734,7 +734,7 @@ main (void)
test8 ();
test9 (1);
test10 ();
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
test11 ();
#endif
DONE ();
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-4.c b/gcc/testsuite/gcc.dg/builtin-object-size-4.c
index dcb042f..2887dd1 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-4.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-4.c
@@ -509,7 +509,7 @@ test8 (unsigned cond)
#endif
}
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
/* Tests for strdup/strndup. */
size_t
__attribute__ ((noinline))
@@ -612,7 +612,7 @@ main (void)
test6 ();
test7 ();
test8 (1);
-#ifndef __AVR__ /* avr has no strndup */
+#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */
test9 ();
#endif
DONE ();