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] Quad-float support in Fortran


On October 27, 2010 23:47, FX wrote:
The attached patch is the current state of my quad-float patch for gfortran.

Changes relative to FX's patch:
- libquad is now libquadmath and a separate libarary under the gcc top directory (including a LGPL copyright file)
- The symbols are now versioned
- libgfortran uses weak symbols (attribute weakref); however, it does not seem to work: I still get a dependence on libquadmath. Any idea why?


I was thinking of using something like:
LIBQUADSPEC="%{static-libquadmath:--as-needed} -lquadmath %{static-libquadmath:--no-as-needed}"
However, this depends on HAVE_LD_AS_NEEDED. The check is done in gcc/configure.ac - and depends on variables being set regarding "ld". Any idea how to best handle this? An ugly brute force method would be to simply read ./gcc's config.h the other brute-force method is to copy and adapt a large chunk of ./gcc/configure.ac. Ideas?


Do you have other comments regarding the patch?

Tobias

PS: Given that there are many gfortran users, which do compile GCC themselves but do not use --enable-maintainer-mode, I have separately included the generated files.

Attachment: quad.diff.bz2
Description: application/bzip

Attachment: quad_gen.diff.bz2
Description: application/bzip


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