public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marc dot waeckerlin at siemens dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code. Date: Tue, 29 Nov 2005 09:27:00 -0000 [thread overview] Message-ID: <20051129092710.28405.qmail@sourceware.org> (raw) In-Reply-To: <bug-11953-794@http.gcc.gnu.org/bugzilla/> ------- Comment #36 from marc dot waeckerlin at siemens dot com 2005-11-29 09:27 ------- New information: _REENTRANT is definitively defined in the headers: > echo "" | g++ \ -I /usr/include/c++/4.0.2 -I /usr/include/c++/4.0.2/i586-suse-linux \ -E -dM -c - | grep REENTRANT > echo "" | g++ \ -I /usr/include/c++/4.0.2 -I /usr/include/c++/4.0.2/i586-suse-linux \ -E -dM -c -pthread - | grep REENTRANT #define _REENTRANT 1 > echo "#include<iostream>" | g++ \ -I /usr/include/c++/4.0.2 -I /usr/include/c++/4.0.2/i586-suse-linux \ -E -dM -c - | grep REENTRANT #define _REENTRANT 1 #define _POSIX_REENTRANT_FUNCTIONS 1 --> So, without "#include <iostream>" it works as expected! This opens a new possibility to work around this bug: --------------file.cpp #define GCC_BUGFIX _REENTRANT #include <iostream> #include ... #undef _REENTRANT #define _REENTRANT GCC_BUGFIX #ifdef _REENTRANT ... #endif ---------------------- > g++ -v Using built-in specs. Target: i586-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux Thread model: posix gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953
next prev parent reply other threads:[~2005-11-29 9:27 UTC|newest] Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-11953-794@http.gcc.gnu.org/bugzilla/> 2005-10-07 3:12 ` gdr at gcc dot gnu dot org 2005-11-28 13:37 ` marc dot waeckerlin at siemens dot com 2005-11-29 9:14 ` marc dot waeckerlin at siemens dot com 2005-11-29 9:27 ` marc dot waeckerlin at siemens dot com [this message] 2005-11-29 9:34 ` marc dot waeckerlin at siemens dot com 2005-11-29 16:06 ` carlo at gcc dot gnu dot org 2006-02-17 21:49 ` jakub at gcc dot gnu dot org 2006-02-28 8:47 ` gdr at gcc dot gnu dot org 2006-10-05 16:06 ` debian-gcc at lists dot debian dot org 2006-12-11 18:13 ` dberlin at gcc dot gnu dot org 2006-12-12 15:15 ` jakub at gcc dot gnu dot org 2006-12-12 15:22 ` jakub at gcc dot gnu dot org 2006-12-12 15:24 ` jakub at gcc dot gnu dot org 2006-12-13 9:38 ` pinskia at gcc dot gnu dot org 2006-12-17 13:47 ` doko at gcc dot gnu dot org 2006-12-17 13:53 ` doko at gcc dot gnu dot org 2006-12-17 13:57 ` doko at gcc dot gnu dot org 2003-08-17 2:21 [Bug c++/11953] New: " carlo at alinoe dot com 2004-05-14 16:26 ` [Bug libstdc++/11953] " bangerth at dealii dot org 2004-05-14 17:08 ` ljrittle at gcc dot gnu dot org 2004-05-14 17:40 ` john at johnmaddock dot co dot uk 2004-05-15 20:34 ` pinskia at gcc dot gnu dot org 2004-05-19 10:33 ` ro at techfak dot uni-bielefeld dot de 2004-05-19 13:16 ` redi at gcc dot gnu dot org 2004-05-20 0:10 ` john at johnmaddock dot co dot uk 2004-06-09 19:18 ` mmitchel at gcc dot gnu dot org 2004-06-09 19:25 ` ro at techfak dot uni-bielefeld dot de 2004-06-09 19:30 ` Andrew Pinski 2004-06-09 19:30 ` pinskia at physics dot uc dot edu 2004-06-09 19:37 ` ro at techfak dot uni-bielefeld dot de 2004-06-18 23:41 ` mmitchel at gcc dot gnu dot org 2004-07-20 0:50 ` bkoz at gcc dot gnu dot org 2004-07-22 13:19 ` redi at gcc dot gnu dot org 2004-07-22 13:40 ` giovannibajo at libero dot it 2004-08-19 20:30 ` mmitchel at gcc dot gnu dot org 2004-09-10 15:25 ` pinskia at gcc dot gnu dot org 2004-10-08 13:13 ` redi at gcc dot gnu dot org 2004-10-08 13:53 ` carlo at gcc dot gnu dot org 2004-10-11 11:39 ` redi at gcc dot gnu dot org 2004-10-11 12:22 ` redi at gcc dot gnu dot org 2004-10-30 19:37 ` mmitchel at gcc dot gnu dot org 2005-05-19 17:35 ` mmitchel at gcc dot gnu dot org 2005-06-13 3:29 ` pinskia at gcc dot gnu dot org 2005-06-14 13:19 ` cludwig at cdc dot informatik dot tu-darmstadt dot de 2005-07-15 22:05 ` pinskia at gcc dot gnu dot org 2005-07-29 11:26 ` david dot nospam dot hopwood at blueyonder dot co dot uk 2005-07-29 12:20 ` david dot nospam dot hopwood at blueyonder dot co dot uk 2005-07-29 13:35 ` redi at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20051129092710.28405.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).