This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: Fix gcc.dg/pthread-init-2.c for ia64-hp-hpux*
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Oct 2006 13:07:43 -0700 (PDT)
- Subject: Patch: Fix gcc.dg/pthread-init-2.c for ia64-hp-hpux*
- Reply-to: sje at cup dot hp dot com
The gcc.dg/pthread-init-2.c test fails on IA64 HP-UX because we don't
define _POSIX_C_SOURCE to 199506L when compiling it. This patch adds
the define for IA64 HP-UX targets like it already has for PA HP-UX and
Solaris targets.
Unless someone objects I will check it in under the obvious rule and
then backport it to the 4.2 branch.
2006-10-24 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/pthread-init-2.c: Define _POSIX_C_SOURCE on ia64 HP-UX.
Index: gcc.dg/pthread-init-2.c
===================================================================
--- gcc.dg/pthread-init-2.c (revision 117992)
+++ gcc.dg/pthread-init-2.c (working copy)
@@ -6,7 +6,7 @@
/* { dg-do compile } */
/* { dg-options "-Wextra -Wall -ansi" } */
-/* { dg-options "-Wextra -Wall -ansi -D_POSIX_C_SOURCE=199506L" { target { hppa*-*-hpux* *-*-solaris2.5.1 } } } */
+/* { dg-options "-Wextra -Wall -ansi -D_POSIX_C_SOURCE=199506L" { target { *-*-hpux* *-*-solaris2.5.1 } } } */
#include "pthread-init-common.h"