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/15930] [irix6.5] gfortran libraries not built


------- Additional Comments From david dot billinghurst at comalco dot riotinto dot com dot au  2004-06-11 05:07 -------
Subject: RE:  [irix6.5] gfortran libraries not built

The following patch to the system header <internal/math_core.h> fixes
the build and allows the gfortran testsuite to run.  Haven't checked 
what happens to C and C++.

Time to learn about fixincludes.

diff -u /usr/include/internal/math_core.h math_core.h
--- /usr/include/internal/math_core.h   Wed Mar 12 11:37:40 2003
+++ math_core.h Fri Jun 11 13:38:39 2004
@@ -188,12 +188,24 @@
 extern int _signbitf(float);
 extern int _signbitl(long double);
 
-#define fpclassify(x) __generic(x,,, _fpclassify, _fpclassifyf, _fpclassifyl,,,)(x)
-#define isfinite(x)   __generic(x,,, _isfinite,   _isfinitef,   _isfinitel,,,)(x)
-#define isinf(x)      __generic(x,,, _isinf,      _isinff,      _isinfl,,,)(x)
-#define isnan(x)      __generic(x,,, _isnan,      _isnanf,      _isnanl,,,)(x)
-#define isnormal(x)   __generic(x,,, _isnormal,   _isnormalf,   _isnormall,,,)(x)
-#define signbit(x)    __generic(x,,, _signbit,    _signbitf,    _signbitl,,,)(x)
+#define fpclassify(x) _fpclassify(x)
+#define fpclassifyf(x) _fpclassifyf(x)
+#define fpclassifyl(x) _fpclassifyl(x)
+#define isfinite(x) _isfinite(x) 
+#define isfinitef(x) _isfinitef(x) 
+#define isfinitel(x) _isfinitel(x) 
+#define isinf(x) _isinf(x)
+#define isinff(x) _isinfl(x)
+#define isinfl(x) _isinfl(x)
+#define isnan(x) _isnan(x)
+#define isnanf(x) _isnanf(x)
+#define isnanl(x) _isnanl(x)
+#define isnormal(x) _isnormal(x)
+#define isnormalf(x) _isnormalf(x)
+#define isnormall(x) _isnormall(x)
+#define signbit(x) _signbit(x)
+#define signbitf(x) _signbitf(x)
+#define signbitl(x) _signbitl(x)
 
 #pragma optional _fpclassify
 #pragma optional _fpclassifyf


-- 


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


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