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: [PATCH] fix-includes for darwin's math.h testing __APPLE_CC__instead of __GNUC__


Andrew Pinski wrote:

OK? Bootstrapped and tested on powerpc-darwin with no regressions (and tested fix-includes
also with no regressions).

Looks okay to me, excep why bother with testing at all? The GCC version is known at cvs checkout time, so a compile time check seems unnecessary. :)

How about this?

+/*
+ * Fixup Darwin's broken check for __builtin_nanf.
+ */
+
+fix = {
+    hackname  = broken_nan;
+    files     = "architecture/ppc/math.h";
+    files     = "architecture/i386/math.h";
+    select    = "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
+    bypass    = "powl";
+    c_fix     = format;
+    c_fix_arg = "#if 1";
+};
+


BTW, the emailed patch spelled "c-fix-arg" as "c-fxi-arg" and could never have worked as intended.

Cheers, Bruce


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