This is the mail archive of the gcc-bugs@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]

Re: Threads, glibc, and all that


Jason Merrill <jason@cygnus.com> writes:

> Huh?  -ansi just means "compile all conformant code".

Exactly.  This also means that headers which might provide conflicting
definitions (e.g., global variables, macros) must not be used.  E.g.,
pthread.h contains a macro named PTHREAD_COND_INITIALIZER and so
including this header is invalid because now you cannot write anymore
a valid ISO C program which defines a local variable named
PTHREAD_COND_INITIALIZER.

-- Uli
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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