[Patch,build] PR 46540 - add --disable-libquadmath/--disable-libquadmath-support
Ralf Wildenhues
Ralf.Wildenhues@gmx.de
Thu Dec 9 22:58:00 GMT 2010
* Tobias Burnus wrote on Thu, Dec 09, 2010 at 12:36:53AM CET:
> Updated patch (relative to
> http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00419.html).
>
> Changes:
> - Use (again!) --disable-libquadmath-support
> - Use AS_HELP_STRING
>
> OK for the trunk?
OK with nits addressed.
Thanks,
Ralf
> /
> 2010-12-09 Tobias Burnus <burnus@net-b.de>
>
> PR fortran/46540
> * configure.ac: Add --disable-libquadmath and
> --disable-libquadmath-support.
> * configure: Regenerate.
This needs syncing to src.
> gcc/
> 2010-12-09 Tobias Burnus <burnus@net-b.de>
>
> PR fortran/46540
> * configure.ac: Handle --disable-libquadmath-support.
> * doc/install.texi: Document --disable-libquadmath and
> --disable-libquadmath-support
> * configure: Regenerate.
> * config.in: Regenerate.
>
> gcc/fortran/
> 2010-12-09 Tobias Burnus <burnus@net-b.de>
>
> PR fortran/46540
> * trans-types.c (gfc_init_kinds): Handle
> --disable-libquadmath-support.
>
> libgfortran/
> 2010-12-09 Tobias Burnus <burnus@net-b.de>
>
> PR fortran/46540
> * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Honour
> --disable-libquadmath-support.
> * configure.ac: Handle --disable-libquadmath-support.
> * configure: Regenerate.
> --- a/gcc/configure.ac
> +++ b/gcc/configure.ac
> @@ -4781,6 +4781,18 @@ if test x"$enable_plugin" = x"yes"; then
> AC_DEFINE(ENABLE_PLUGIN, 1, [Define to enable plugin support.])
> fi
>
> +
> +AC_ARG_ENABLE(libquadmath-support,
> +AS_HELP_STRING([--disable-libquadmath-support],
> + [disable libquadmath support for Fortran]),
> +ENABLE_LIBQUADMATH_SUPPORT=$enableval,
> +ENABLE_LIBQUADMATH_SUPPORT=yes)
> +if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
> + AC_DEFINE(USE_LIBQUADMATH_SUPPORT, 1,
Is there a specific reason you don't use ENABLE_LIBQUADMATH_SUPPORT also
as the name of the define? There is precedent. (Your choice though.)
trans-types.c would need adjusting, of course.
> + [Define to 1 to enable libquadmath support])
> +fi
> --- a/gcc/doc/install.texi
> +++ b/gcc/doc/install.texi
> @@ -1337,6 +1337,16 @@ do a @samp{make -C gcc gnatlib_and_tools}.
> Specify that the run-time libraries for stack smashing protection
> should not be built.
>
> +@item --disable-libquadmath
> +Specify that the GCC quad-precision math library should not be build.
built
> +On some systems, the library is required to be linkable when building
> +the Fortran front end, unless @option{--disable-libquadmath-support}
> +is used.
> +
> +@item --disable-libquadmath-support
> +Specify that the Fortran front end and @code{libgfortran} do not add
> +support for @code{libquadmath} on systems supporting it.
> +
More information about the Gcc-patches
mailing list