This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for PR 15235 libgfortran doesn't build on Solaris
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>, "gcc at gcc dot gnu dot org List" <gcc at gcc dot gnu dot org>, Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>, Paul Brook <paul at codesourcery dot com>, fortran at gcc dot gnu dot org
- Date: Tue, 18 May 2004 21:02:44 +0000 (UTC)
- Subject: Re: Fix for PR 15235 libgfortran doesn't build on Solaris
- References: <40A8C9A9.2040101@physik.uni-muenchen.de><16552.62133.929397.896563@xayide.TechFak.Uni-Bielefeld.DE><40A91C70.2010900@physik.uni-muenchen.de> <200405172256.45916.paul@codesourcery.com><40A93FB9.80209@physik.uni-muenchen.de> <40A94303.30904@physik.uni-muenchen.de><16554.21172.438752.209963@xayide.TechFak.Uni-Bielefeld.DE><DAC90EAB-A8F7-11D8-A4A1-000393A6D2F2@physics.uc.edu><16554.21939.762404.471419@xayide.TechFak.Uni-Bielefeld.DE><BBE01BDC-A8FA-11D8-A4A1-000393A6D2F2@physics.uc.edu>
On Tue, 18 May 2004, Andrew Pinski wrote:
> The following patch with in conjunction with setting
> TARGET_C99_FUNCTIONS
> to 1 will get the needed builtins (and should get solaris 10 to work
> correctly
> unless isnan/isnanf is no longer in libm):
isnan is a type-generic macro, not a function (and so there is no isnanf).
__builtin_isunordered etc. are suitable examples to follow if anyone wants
to implement such a built-in function. It looks from the text quoted in
<http://gcc.gnu.org/ml/fortran/2004-05/msg00223.html> that Solaris is
expecting such a type-generic built-in function. (I don't know whether
Solaris also provides an isnan function; there's no particular reason for
it to do so, but the name is reserved.)
--
Joseph S. Myers
jsm@polyomino.org.uk