[PATCH]: fix c99-math* isinf check

Kaveh R. GHAZI ghazi@caip.rutgers.edu
Mon Jul 2 03:39:00 GMT 2007


Minor nit I noticed while visually inspecting this testcase.  Looks like a
cut-n-paste error.  Each macro has it's own section, isnan, isinf, etc in
blocks.  One "isnan" snuck into the "isinf" section.  Eric I believe you
wrote this test, can you confirm this is what you meant?

		Thanks,
		--Kaveh


2007-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* gcc.dg/c99-math.h: Fix typo.

diff -rup orig/egcc-SVN20070630/gcc/testsuite/gcc.dg/c99-math.h egcc-SVN20070630/gcc/testsuite/gcc.dg/c99-math.h
--- orig/egcc-SVN20070630/gcc/testsuite/gcc.dg/c99-math.h	2006-01-22 23:55:57.000000000 -0500
+++ egcc-SVN20070630/gcc/testsuite/gcc.dg/c99-math.h	2007-07-01 19:02:15.560868570 -0400
@@ -45,7 +45,7 @@ extern void abort(void);
   if (!isinf (huge))					\
     abort ();						\
 							\
-  if (isnan (norm))					\
+  if (isinf (norm))					\
     abort ();						\
 							\
   if (isinf (zero))					\



More information about the Gcc-patches mailing list