This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to remove unused `NAN' and `nan' from libstdc++-v3
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gdr at integrable-solutions dot net, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 29 Nov 2002 18:54:04 -0600
- Subject: Re: Patch to remove unused `NAN' and `nan' from libstdc++-v3
- References: <200211281447.JAA16991@caip.rutgers.edu><m3vg2h9169.fsf@uniton.integrable-solutions.net><200211281806.NAA18390@caip.rutgers.edu><m3y97ctzzu.fsf@uniton.integrable-solutions.net><200211300031.TAA25981@caip.rutgers.edu>
>2002-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * libmath/mathconf.h (NAN, nan): Delete.
> * acinclude.m4 (nan): Don't check for it.
> * config/linker-map.gnu (nan): Delete.
> * libmath/nan.c: Delete.
>
> * aclocal.m4, config.h.in, configure: Update.
Mostly good...
>diff -N -rup orig/egcc-CVS20021127/libstdc++-v3/config/linker-map.gnu egcc-CVS20021127/libstdc++-v3/config/linker-map.gnu
>--- orig/egcc-CVS20021127/libstdc++-v3/config/linker-map.gnu 2002-11-26 07:01:22.000000000 -0500
>+++ egcc-CVS20021127/libstdc++-v3/config/linker-map.gnu 2002-11-28 13:10:04.782064464 -0500
>@@ -235,7 +235,6 @@ GLIBCPP_3.2.1 {
> sqrtf;
> sqrtl;
> copysignf;
>- nan;
> __signbit;
> __signbitf;
> __signbitl;
..can't really remove a symbol after it's been exported. You'll have to
export a dummy symbol, and mark it with
// GLIBCXX_ABI > 5 will not need this symbol at all.
see globals.cc, other uses of GLIBCXX_ABI
-benjamin