This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11953] New: _REENTRANT defined when compiling non-threaded code.
- From: "carlo at alinoe dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2003 02:21:07 -0000
- Subject: [Bug c++/11953] New: _REENTRANT defined when compiling non-threaded code.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953
Summary: _REENTRANT defined when compiling non-threaded code.
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at alinoe dot com
CC: gcc-bugs at gcc dot gnu dot org
This can't be right imho.
>g++-3.3 troep.cc
>a.out; echo $?
0
>g++-cvs-3.4 troep.cc
>a.out; echo $?
1
Where
>cat troep.cc
#include <iosfwd>
int main()
{
#ifdef _REENTRANT
return 1;
#else
return 0;
#endif
}
_REENTRANT is defined regardless in
bits/gthr-default.h at the moment.