This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC patch: Add libquadmath - and use it in gfortran (round two)


* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]