This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.
- From: "john at johnmaddock dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2004 10:40:04 -0000
- Subject: [Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.
- References: <20030817022106.11953.carlo@alinoe.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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