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]

Re: [committed] Fix fail of gcc.dg/pthread-init-2.c on hppa*-*-hpux11*


> With the braces fix just applied, gcc.dg/pthread-init-2.c still
> fails under hpux11 since there is no typedef for sigset_t unless
> _INCLUDE_POSIX_SOURCE is defined.

Exactly the same problem on Solaris 2.5.1, whereas later versions are OK.

Tested on SPARC/Solaris 2.5.1, applied to mainline.


2006-10-14  Eric Botcazou  <ebotcazou@libertysurf.fr>

        * gcc.dg/pthread-init-2.c (dg-options): Define _POSIX_C_SOURCE=199506L
        on Solaris 2.5.1 too.


Index: gcc.dg/pthread-init-2.c
===================================================================
--- gcc.dg/pthread-init-2.c     (revision 117726)
+++ 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* } } } */
+/* { dg-options "-Wextra -Wall -ansi -D_POSIX_C_SOURCE=199506L" { target 
{ hppa*-*-hpux* *-*-solaris2.5.1 } } } */

 #include "pthread-init-common.h"


-- 
Eric Botcazou


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