This is the mail archive of the gcc-bugs@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]

[Bug libfortran/15235] [gfortran] libgfortran doesn't build on Solaris


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-05-18 16:42 -------
Subject: Re:  [gfortran] libgfortran doesn't build on Solaris

tobi at gcc dot gnu dot org writes:

> Just for the record: it remains the issue of isinf() not being present on
> Solaris, patch here: http://gcc.gnu.org/ml/fortran/2004-05/msg00234.html

Unfortunately, this patch doesn't help on Solaris 10, but due to an
unrelated problem: <iso/math_c99.h> (included by <math.h>) unconditionally
defines

#undef  isnan
#define isnan(x)        __builtin_isnan(x)

but GCC doesn't provide __builtin_isnan, so we again get link failures.

This is obviously a problem with the Sun headers which don't accomodate
non-Sun C99 compilers.  I may file a bug report for this, but apart from
that, this is fixincludes material.

I'm running another bootstrap on sparc-sun-solaris2.8 which doesn't have
this issue.

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15235


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