This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR libstdc++/17505: Update libmath stubs in linker-map.gnu
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: roger at eyesopen dot com, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, ebotcazou at libertysurf dot fr
- Date: Wed, 6 Oct 2004 23:20:00 -0500
- Subject: Re: PR libstdc++/17505: Update libmath stubs in linker-map.gnu
- Organization: Red Hat / Chicago
- References: <Pine.LNX.4.44.0410031141390.21829-100000@www.eyesopen.com><20041006224928.GE6399@redhat.com>
>Better would be to put all of these routines in a separate library
>such that the search path becomes
>
> -lstdc++
> -lm
> -lm_compat
>
>where -lm_compat is our compatibility library. In this way, the user
>gets to take advantage of C99 compatibility improvements in the host
>operating system. It also insulates libstdc++ itself from having to
>become a compltete libc replacement. It can also be reused by libgfortran,
>which basically has to do exactly the same thing.
I'm up for moving libstdc++/libmath to toplevel. However, this library
isn't intended to be an actual implementation, rather something that
frail and weak systems can use as a crutch to link real code: just
stubs.
You seem to be suggesting a libiberty for math? Ouch. I stay away: as
you suggest, this is outside the bounds of the libstdc++ project.
-benjamin