[Bug target/54686] std::abs (long long) resorts to std::abs (double) if llabs is absent

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 5 16:21:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54686

--- Comment #32 from Marc Glisse <glisse at gcc dot gnu.org> 2012-10-05 16:20:59 UTC ---
Author: glisse
Date: Fri Oct  5 16:20:44 2012
New Revision: 192132

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192132
Log:
2012-10-05  Marc Glisse  <marc.glisse@inria.fr>

    PR libstdc++/54686
    * include/c_std/cstdlib (abs(long long)): Define with
    __builtin_llabs when we have long long.
    (abs(long)): Use __builtin_labs.
    (abs(__int128)): Define when we have __int128.
    * testsuite/26_numerics/headers/cstdlib/54686.c: New file.


Added:
    trunk/libstdc++-v3/testsuite/26_numerics/headers/cstdlib/54686.c   (with
props)
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/c_std/cstdlib

Propchange: trunk/libstdc++-v3/testsuite/26_numerics/headers/cstdlib/54686.c
            ('svn:eol-style' added)

Propchange: trunk/libstdc++-v3/testsuite/26_numerics/headers/cstdlib/54686.c
            ('svn:keywords' added)



More information about the Gcc-bugs mailing list