This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC patch: Add libquadmath - and use it in gfortran (round two)
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 14 Nov 2010 16:42:06 +0100
- Subject: Re: RFC patch: Add libquadmath - and use it in gfortran (round two)
- References: <4CD85E91.9000506@net-b.de>
* Tobias Burnus wrote on Mon, Nov 08, 2010 at 09:33:21PM CET:
> a) libquadmath(.tar.bz2): __float128 math library. It exports all
> math functions with the suffix "q" ("tanq", "jnq" etc.); it also
> exports two I/O related functions with the prefix quadmath_. The
> library is used from libgfortran but can also be used from C/C++.
> However, there is no printf hook thus doing I/O from C/C++ is a bit
> more effort. The library is automatically build if language=fortran
> is enabled, but on systems without __float128 it is a no op.
FWIW, at a glance, configury inside libquadmath looks sane to me.
You could use the Automake option subdir-objects (added as argument to
AM_INIT_AUTOMAKE in libquadmath/configure.ac) to have objects built in
math/ and gdtoa/ subdirs; you might need to add AM_PROG_CC_C_O then too.
It nicely shortens the generated Makefile.in and is a wee bit more
efficient too. This is not a necessity though.
Thanks,
Ralf