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]

[Patch]: Bypass testing C99 builtins on irix6


Irix6 doesn't have all the C99 math stuff either.  While in there I
switched "sun" to "__sun" so we use the same macro style consistently.

Note, this patch obviously fixes all the C99 problems in builtins-18.c
and builtins-20.c.  However builtins-18.c still fails because of a c90
`double' failure in the cabs tests.  Separate issue though.

Tested via "make check" on mips-sgi-irix6.5 and sparc-sun-solaris2.7.

Ok for mainline and 3.4?

		Thanks,
		--Kaveh


2004-02-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* gcc.dg/builtins-config.h: Use underscore macro style for __sun
	system type.  Add check for irix6 which doesn't have c99 runtime.

diff -rup orig/egcc-CVS20040228/gcc/testsuite/gcc.dg/builtins-config.h egcc-CVS20040228/gcc/testsuite/gcc.dg/builtins-config.h
--- orig/egcc-CVS20040228/gcc/testsuite/gcc.dg/builtins-config.h	2004-02-28 18:07:17.000000000 -0500
+++ egcc-CVS20040228/gcc/testsuite/gcc.dg/builtins-config.h	2004-02-28 18:11:36.237577426 -0500
@@ -11,8 +11,10 @@
 
 #if defined(__hppa) && defined(__hpux)
 /* PA HP-UX doesn't have the entire C99 runtime.  */
-#elif defined(sun)
+#elif defined(__sun)
 /* Solaris doesn't have the entire C99 runtime.  */
+#elif defined(__sgi)
+/* Irix6 doesn't have the entire C99 runtime.  */
 #else
 /* Newlib has the "f" variants of the math functions, but not the "l"
    variants.  TARGET_C99_FUNCTIONS is only defined if all C99



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