[committed] Disable tests for strdup/strndup on __hpux__ in various builtin-object-size tests
Checks
Commit Message
Tested on hppa64-hp-hpux11.11. Committed to trunk.
Dave
---
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.
@@ -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 ();
@@ -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 ();
@@ -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 ();
@@ -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 ();