[PATCH, libphobos] Detect if qsort_r is available (PR d/88127)

Iain Buclaw ibuclaw@gdcproject.org
Mon Feb 18 23:31:00 GMT 2019


On Sat, 2 Feb 2019 at 11:01, Johannes Pfau <johannespfau@gmail.com> wrote:
>
> Adds a configure test for qsort_r and use the fallback code path if
> it's not available. Fixes d/88127. rt/qsort.d changes have been
> pushed upstream and reviewed there: https://github.com/dlang/druntime/pull/2480
> Bootstrapped & ran D test suite on x86_64_linux with a recent glibc,
> checked that Have_Qsort_R is set correctly in config.d.
>
> libphobos/ChangeLog:
>
> 2019-02-02  Johannes Pfau  <johannespfau@gmail.com>
>
>         * m4/druntime/libraries.m4: Add check for qsort_r as DRUNTIME_LIBRARIES_CLIB.
>         * configure.ac: Use qsort_r check.
>         * libdruntime/gcc/config.d.in: Add Have_Qsort_R to store check result.
>         * libdruntime/rt/qsort.d: Check Have_Qsort_R before using qsort_r.
>         * Makefile.in: Regenerate.
>         * aclocal.m4: Regenerate.
>         * configure: Regenerate.
>         * libdruntime/Makefile.in: Regenerate.
>         * src/Makefile.in: Regenerate.
>         * testsuite/Makefile.in: Regenerate.
>
> ---
>  libphobos/Makefile.in                 |  7 +++--
>  libphobos/aclocal.m4                  | 40 +++++++++++++--------------
>  libphobos/configure                   | 26 +++++++++++++++--
>  libphobos/configure.ac                |  1 +
>  libphobos/libdruntime/Makefile.in     |  7 +++--
>  libphobos/libdruntime/gcc/config.d.in |  3 ++
>  libphobos/libdruntime/rt/qsort.d      | 18 ++++++++++++
>  libphobos/m4/druntime/libraries.m4    | 12 ++++++++
>  libphobos/src/Makefile.in             |  5 ++--
>  libphobos/testsuite/Makefile.in       |  5 ++--
>  10 files changed, 92 insertions(+), 32 deletions(-)
>

Adjusted the changelog entry to fit within 80 characters.

Committed as r268999.

Thanks,
-- 
Iain



More information about the Gcc-patches mailing list