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]

Re: Threads, glibc, and all that


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   `------------------------


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