This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.3
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Thibaud Tortech <tortech at nortelnetworks dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>,Benjamin Kosnik <bkoz at redhat dot com>,DJ Delorie <dj at redhat dot com>,gcc at gcc dot gnu dot org
- Date: Tue, 6 May 2003 15:36:44 +0200
- Subject: Re: GCC 3.3
- References: <3EB7B041.96528FE4@europem01.nt.com>
> The problem belongs to the definitions of PTHREAD_MUTEX_INITIALIZER and
> PTHREAD_COND_INITIALIZER in pthread.h in solaris 2.6 .
>
> To solve the problem I added the two following fixes in file
> inclhack.def:
>
> fix = {
> hackname = solaris26_mutex_init;
> select = '@\(#\)pthread.h' "[ \t]+1.16+[ \t]+[0-9/]+ SMI";
> files = pthread.h;
> c_fix = format;
> c_fix_arg = "%1{{0},0},{0}%2\n";
> c_fix_arg = "(^#define[ \t]+PTHREAD_MUTEX_INITIALIZER[ \t]+{[ \t]*)"
>
> "0,[ \t]*0" "(,.*)$";
> test_text =
> '#ident "@(#)pthread.h 1.16 97/05/05 SMI"'"\n"
> "#define PTHREAD_MUTEX_INITIALIZER\t{0, 0, 0}[ \t]*\n";
> };
>
>
> fix = {
> hackname = solaris26_cond_init;
> select = '@\(#\)pthread.h' "[ \t]+1.16+[ \t]+[0-9/]+ SMI";
> files = pthread.h;
> c_fix = format;
> c_fix_arg = "%1{{0},0}%2\n";
> c_fix_arg = "(^#define[ \t]+PTHREAD_COND_INITIALIZER[ \t]+{[ \t]*)"
> "0" "(,.*)$";
> test_text =
> '#ident "@(#)pthread.h 1.16 97/05/05 SMI"'"\n"
> "#define PTHREAD_COND_INITIALIZER\t{0, 0}[ \t]*\n";
> };
>
> I hope this will help you.
Sure. Many thanks!
I should have remembered this problem... this is PR target/7971.
DJ, what is the status of this PR?
I see this entry in the ChangeLog for 3.2.3:
2003-03-29 Albert Chin-A-Young <china@thewrittenword.com>
DJ Delorie <dj at redhat dot com>,
Bruce Korb <bkorb at gnu dot org>
* fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
buggy Solaris mutex/cond initializers.
(solaris_mutex_init): Rename to solaris_mutex_init_2.
* fixinc/fixincl.x: Regenerate.
* fixinc/tests/base/pthread.h: Update.
and these entries on mainline:
2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
* gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
work on Solaris 2.5.1.
2003-03-22 DJ Delorie <dj at redhat dot com>,
Bruce Korb <bkorb at gnu dot org>
* fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
buggy Solaris 2.6 mutex/cond initializers.
(solaris_mutex_init): Rename to solaris_mutex_init_2.
* fixinc/fixincl.x: Regenerate.
* fixinc/tests/base/pthread.h: Update.
* fixinc/fixincl.c(initialize): be explicit about the default case
and indicate verbose level when being very, very verbose.
* fixinc/check.tpl(VERBOSE): provide a means for passing the value in
but none on the 3.3 branch?
--
Eric Botcazou