This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Threads, glibc, and all that
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: Threads, glibc, and all that
- From: Ulrich Drepper <drepper at cygnus dot com>
- Date: 25 Feb 1998 10:20:30 -0800
- Cc: jason at cygnus dot com (Jason Merrill), mmitchell at usa dot net, law at cygnus dot com, egcs-bugs at cygnus dot com
- References: <m0y7ktT-00058gC@ocean.lucon.org>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
hjl@lucon.org (H.J. Lu) writes:
> That glibc bug only shows up when -ansi is used on that test case.
> Ulrich has fixed it in glibc 2.1 and upcoming glibc 2.0.7. I don't
> think -ansi is used a lot on C++ code. The worst case is libstdc++
> includes a proper signal.h and install it in ...../include/g++ if
> necessary. Ulrich, do you want me to make a patch to libstdc++?
Installing a separate copy of the header in a g++ directory is no
good. This would only mean the with updates of the C library still
the old header is used in C++ programs.
Instead I'd suggest that
a) either disable -ansi (or undefine the test sysmbols) for now
or
b) add a comment in the README (with a patch for the libc header) and
refer to glibc 2.0.7 (2.1).
-- Uli
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------