This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/3195
- To: Sylvain dot Pion at sophia dot inria dot fr
- Subject: libstdc++/3195
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Mon, 18 Jun 2001 14:44:32 -0500 (CDT)
- CC: gcc-bugs at gcc dot gnu dot org
- Reply-to: rittle at labs dot mot dot com
Hi Sylvain,
Do you have the ability to apply this patch and rebuild
${objdir}/gcc/include on solaris2.6? You may need to have
ftp://gcc.gnu.org/pub/gcc/infrastructure/autogen.tar.gz installed. If
that is not available for you (or too much work), then I can
pregenerate it for you (but that will take until my next bootstrap).
It is my hope that this will solve your problem on Solaris 2.6.
Please inform me if it does so and I will submit/apply the patch.
Regards,
Loren
Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.112
diff -c -r1.112 inclhack.def
*** inclhack.def 2001/06/14 03:51:01 1.112
--- inclhack.def 2001/06/18 19:37:17
***************
*** 2072,2077 ****
--- 2072,2095 ----
/*
+ * Sun Solaris 2.6 defines PTHREAD_MUTEX_INITIALIZER in a way that
+ * causes many warnings with gcc (at certain warning and standards
+ * adherence levels).
+ */
+ fix = {
+ hackname = solaris26_mutex_init;
+ select = '@\(#\)pthread.h' "[ \t]+1.16[ \t]+97/05/05 SMI";
+ files = pthread.h;
+ c_fix = format;
+ c_fix_arg = "%1 {{{0}, 0}, {{{0}}}, {0}}";
+ c_fix_arg = "(define[ \t]+PTHREAD_MUTEX_INITIALIZER).*$";
+ test_text =
+ '#ident "@(#)pthread.h 1.16 97/05/05 SMI"'"\n"
+ "#define PTHREAD_MUTEX_INITIALIZER {0, 0, 0}";
+ };
+
+
+ /*
* Sony NEWSOS 5.0 does not support the complete ANSI C standard.
*/
#ifdef SONY