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]: fix c99-math* isinf check


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))					\


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