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 c++/11953] New: _REENTRANT defined when compiling non-threaded code.


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.


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