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]
Other format: [Raw text]

[Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.


------- Additional Comments From john at johnmaddock dot co dot uk  2004-05-14 10:40 -------
IMO there are several issues here:

1) Documentation - the thread compiler options are undocumented currently.
2) Consistency - we currently appear to have -pthread (Linux) -pthreads 
(solaris) -mthread (mingwin), or nothing required (BSD, cygwin).  Please can 
we have some kind of consistent policy here?
3) The C++ headers should not be defining a symbol that's normally defined on 
the compiler command line (and usually by the appropriate compiler option 
rather than a direct define).
4) It would be nice if _REENTRANT was a compiler define when it's in thread-
safe mode - that's the way most other compiler vendors handle it (although 
some spell it _MT :-) ).

Regards,

John Maddock.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john at johnmaddock dot co
                   |                            |dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953


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