This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: Fix gcc.dg/pthread-init-2.c for ia64-hp-hpux*


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"
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]