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]

libstdc++/3195


Hi Bruce,

I noticed that I forgot to CC you on a fixinc-related patch already
properly posted to gcc-bugs@gcc.gnu.org, GNATS and gcc-patches@gcc.gnu.org
(see http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01264.html).

I have fully bootstrapped and checked the 3.0 branch and mainline on
i386-unknown-freebsd4.2 (which should not be affected) without any
test regressions.  The problem submitter has reported that this patch
works for him on Solaris 2.6 (which obviously should be an affected
platform) but he didn't report full test suite results.

Even though it was tested on the 3.0 branch, my proposal is to apply
this to mainline only since the only "regression" is that too many
warning are emitted when extra switches are provided (and I don't have
any way to personally test this patch to the point required for the
3.0 branch).  OK to install on mainline?

Regards,
Loren

2001-06-19  Loren J. Rittle  <ljrittle@acm.org>

	libstdc++/3195
	* fixinc/inclhack.def (solaris26_mutex_init): Add.
	* fixinc/fixincl.x: Rebuild.

Index: gcc/fixinc/inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.101.2.10
diff -c -r1.101.2.10 inclhack.def
*** inclhack.def	2001/06/15 04:16:12	1.101.2.10
--- inclhack.def	2001/06/21 23:34:30
***************
*** 2101,2106 ****
--- 2101,2124 ----
  
  
  /*
+  * 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


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