[Bug target/84829] -mieee-fp causes to link with -lieee but that is no longer available

matz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 12 14:58:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84829

Michael Matz <matz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matz at gcc dot gnu.org

--- Comment #1 from Michael Matz <matz at gcc dot gnu.org> ---
Note that the old libieee.a (which was only an object) set the global variable
_LIB_VERSION to _IEEE_.  That variable is (or was) checked by various libm
routines to conditionalize behaviour in error cases, which is the purpose of
-mieee-fp.  So that's what warranted the inclusion of -lieee in the past.

The change removing libieee from glibc also removed all handling of that global
variable, so the right thing to do for gcc is to not link against it if it
doesn't exist.  Which is of course a problem, as then you can't update glibc
without having to rebuild gcc :-/


More information about the Gcc-bugs mailing list