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: [GCC PATCH]: add tests for pthread initialization macros


Kaveh R. Ghazi wrote:

> OK.  I'm convinced:
> 1.  initializer horsedung belongs in the file where the struct is
>     defined (And the Austin group should be informed of their mistake)
> 2.  GCC needs a way to say, "initialize this thing to all NUL bytes,
>     whatever in heck its format happens to be."

While I wholeheartedly agree with your sentiment, #2 won't solve these
problems.  At least on e.g. solaris9 the PTHREAD_MUTEX_INITIALIZER et
al. use some non-zero initializers. :-/


A Solaris coding error. ;-)



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