This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: fix c99-math* isinf check
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: ebotcazou at libertysurf dot fr, gcc-patches at gcc dot gnu dot org
- Date: Sun, 1 Jul 2007 23:39:43 -0400 (EDT)
- Subject: [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)) \