aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-01-19 16:56:04 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2024-01-19 16:56:04 +0000
commit69d91f095482d92f639163dbb4dea65b465147c5 (patch)
tree1800a3a609eea3fe12fb4c5471a04e7d3285b365 /gcc
parent89d42ec4ccb0268d572435f9353b50a0a9b8ab37 (diff)
downloadgcc-69d91f095482d92f639163dbb4dea65b465147c5.zip
gcc-69d91f095482d92f639163dbb4dea65b465147c5.tar.gz
gcc-69d91f095482d92f639163dbb4dea65b465147c5.tar.bz2
Change dg-options for hpux to define _HPUX_SOURCE in gcc.dg/pthread-init-2.c
Pthreads on hpux needs _HPUX_SOURCE define for id_t and spu_t types. 2024-01-19 John David Anglin <danglin@gcc.gnu.org> gcc/testsuite/ChangeLog: * gcc.dg/pthread-init-2.c: Change dg-options for hpux to define _HPUX_SOURCE.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/pthread-init-2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/pthread-init-2.c b/gcc/testsuite/gcc.dg/pthread-init-2.c
index d7cd66b..c934fb5 100644
--- a/gcc/testsuite/gcc.dg/pthread-init-2.c
+++ b/gcc/testsuite/gcc.dg/pthread-init-2.c
@@ -7,7 +7,8 @@
/* { dg-do compile } */
/* { dg-require-effective-target pthread_h } */
/* { dg-options "-Wextra -Wall -ansi" } */
-/* { dg-options "-Wextra -Wall -ansi -D_POSIX_C_SOURCE=199506L" { target { *-*-hpux* } } } */
+/* We need to define _HPUX_SOURCE on hpux11.11 for id_t and spu_t types. */
+/* { dg-options "-Wextra -Wall -ansi -D_HPUX_SOURCE" { target { *-*-hpux* } } } */
/* { dg-options "-Wextra -Wall -ansi -D_XOPEN_SOURCE=500" { target { powerpc-ibm-aix* } } } */
/* The definition of PTHREAD_MUTEX_INITIALIZER is missing an initializer for
mutexAttr.mutexAttrType in kernel mode for various VxWorks versions. */