This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: for libstdc++/3195
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: for libstdc++/3195
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Tue, 19 Jun 2001 13:36:26 -0500 (CDT)
- CC: Sylvain dot Pion at sophia dot inria dot fr
- References: <200106181944.f5IJiW722472@latour.rsch.comm.mot.com>
- Reply-to: rittle at labs dot mot dot com
In article <200106181944.f5IJiW722472@latour.rsch.comm.mot.com> (on
gcc-bugs), I wrote:
> 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. [...]
Sylvain Pion, who submitted libstdc++/3195, has reported that this
patch correctly fixes the excess warnings he saw on Solaris 2.6 which
were introduced by the STL thread configuration changes went in.
(Bruce:) Permission to apply to mainline? FYI: The exact form of this
fix was copied from solaris27_mutex_init.
Regards,
Loren
2001-06-19 Loren J. Rittle <ljrittle@acm.org>
* fixinc/inclhack.def (solaris26_mutex_init): Add.
* fixinc/fixincl.x: Rebuild.
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/19 18:21: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