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] gcc.dg/c99-math*.[ch]: Remove trailing ^M.


Hi,

Committed as obvious.

Kazu Hirata

2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>

	* gcc.dg/c99-math-double-1.c, gcc.dg/c99-math-float-1.c,
	gcc.dg/c99-math-long-double-1.c, gcc.dg/c99-math.h: Remove
	trailing ^M.

Index: gcc.dg/c99-math-double-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/c99-math-double-1.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 c99-math-double-1.c
--- gcc.dg/c99-math-double-1.c	19 May 2005 07:05:44 -0000	1.1
+++ gcc.dg/c99-math-double-1.c	30 May 2005 15:07:35 -0000
@@ -1,18 +1,18 @@
-/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
-/* { dg-options "-std=c99 -O" } */
-
-#include <math.h>
-#include "c99-math.h"
-
-int main(void)
-{
-  double nan = NAN;
-  double inf = INFINITY;
-  double huge = HUGE_VAL;
-  double norm = __DBL_MIN__;
-  double zero = 0.0;
-
-  C99_MATH_TESTS (nan, inf, huge, norm, zero)
-
-  return 0;
-}
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
+/* { dg-options "-std=c99 -O" } */
+
+#include <math.h>
+#include "c99-math.h"
+
+int main(void)
+{
+  double nan = NAN;
+  double inf = INFINITY;
+  double huge = HUGE_VAL;
+  double norm = __DBL_MIN__;
+  double zero = 0.0;
+
+  C99_MATH_TESTS (nan, inf, huge, norm, zero)
+
+  return 0;
+}
Index: gcc.dg/c99-math-float-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/c99-math-float-1.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 c99-math-float-1.c
--- gcc.dg/c99-math-float-1.c	19 May 2005 07:05:44 -0000	1.1
+++ gcc.dg/c99-math-float-1.c	30 May 2005 15:07:35 -0000
@@ -1,18 +1,18 @@
-/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
-/* { dg-options "-std=c99 -O" } */
-
-#include <math.h>
-#include "c99-math.h"
-
-int main(void)
-{
-  float nan = NAN;
-  float inf = INFINITY;
-  float huge = HUGE_VALF;
-  float norm = __FLT_MIN__;
-  float zero = 0.0f;
-
-  C99_MATH_TESTS (nan, inf, huge, norm, zero)
-
-  return 0;
-}
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
+/* { dg-options "-std=c99 -O" } */
+
+#include <math.h>
+#include "c99-math.h"
+
+int main(void)
+{
+  float nan = NAN;
+  float inf = INFINITY;
+  float huge = HUGE_VALF;
+  float norm = __FLT_MIN__;
+  float zero = 0.0f;
+
+  C99_MATH_TESTS (nan, inf, huge, norm, zero)
+
+  return 0;
+}
Index: gcc.dg/c99-math-long-double-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/c99-math-long-double-1.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 c99-math-long-double-1.c
--- gcc.dg/c99-math-long-double-1.c	19 May 2005 07:05:44 -0000	1.1
+++ gcc.dg/c99-math-long-double-1.c	30 May 2005 15:07:35 -0000
@@ -1,18 +1,18 @@
-/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
-/* { dg-options "-std=c99 -O" } */
-
-#include <math.h>
-#include "c99-math.h"
-
-int main(void)
-{
-  long double nan = NAN;
-  long double inf = INFINITY;
-  long double huge = HUGE_VALL;
-  long double norm = __LDBL_MIN__;
-  long double zero = 0.0l;
-
-  C99_MATH_TESTS (nan, inf, huge, norm, zero)
-
-  return 0;
-}
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
+/* { dg-options "-std=c99 -O" } */
+
+#include <math.h>
+#include "c99-math.h"
+
+int main(void)
+{
+  long double nan = NAN;
+  long double inf = INFINITY;
+  long double huge = HUGE_VALL;
+  long double norm = __LDBL_MIN__;
+  long double zero = 0.0l;
+
+  C99_MATH_TESTS (nan, inf, huge, norm, zero)
+
+  return 0;
+}
Index: gcc.dg/c99-math.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/c99-math.h,v
retrieving revision 1.1
diff -u -d -p -r1.1 c99-math.h
--- gcc.dg/c99-math.h	19 May 2005 07:05:44 -0000	1.1
+++ gcc.dg/c99-math.h	30 May 2005 15:07:35 -0000
@@ -1,111 +1,111 @@
-#include <math.h>
-
-extern void abort(void);
-
-#define C99_MATH_TESTS(nan, inf, huge, norm, zero)	\
-{							\
-  if (fpclassify (nan) != FP_NAN)			\
-    abort ();						\
-							\
-  if (fpclassify (inf) != FP_INFINITE)			\
-    abort ();						\
-							\
-  if (fpclassify (huge) != FP_INFINITE)			\
-    abort ();						\
-							\
-  if (fpclassify (norm) != FP_NORMAL)			\
-    abort ();						\
-							\
-  if (fpclassify (zero) != FP_ZERO)			\
-    abort ();						\
-							\
-							\
-  if (!isnan (nan))					\
-    abort ();						\
-							\
-  if (isnan (inf))					\
-    abort ();						\
-							\
-  if (isnan (huge))					\
-    abort ();						\
-							\
-  if (isnan (norm))					\
-    abort ();						\
-							\
-  if (isnan (zero))					\
-    abort ();						\
-							\
-							\
-  if (isinf (nan))					\
-    abort ();						\
-							\
-  if (!isinf (inf))					\
-    abort ();						\
-							\
-  if (!isinf (huge))					\
-    abort ();						\
-							\
-  if (isnan (norm))					\
-    abort ();						\
-							\
-  if (isinf (zero))					\
-    abort ();						\
-							\
-							\
-  if (isfinite (nan))					\
-    abort ();						\
-							\
-  if (isfinite (inf))					\
-    abort ();						\
-							\
-  if (isfinite (huge))					\
-    abort ();						\
-							\
-  if (!isfinite (norm))					\
-    abort ();						\
-							\
-  if (!isfinite (zero))					\
-    abort ();						\
-							\
-							\
-  if (isnormal (nan))					\
-    abort ();						\
-							\
-  if (isnormal (inf))					\
-    abort ();						\
-							\
-  if (isnormal (huge))					\
-    abort ();						\
-							\
-  if (!isnormal (norm))					\
-    abort ();						\
-							\
-  if (isnormal (zero))					\
-    abort ();						\
-							\
-							\
-  if (signbit (norm))					\
-    abort ();						\
-							\
-  if (!signbit (-(norm)))				\
-    abort ();						\
-							\
-							\
-  if (!isgreater ((inf), (norm)))			\
-    abort ();						\
-							\
-  if (!isgreaterequal ((inf), (huge)))			\
-    abort ();						\
-							\
-  if (!isless ((norm), (inf)))				\
-    abort ();						\
-							\
-  if (!islessequal ((huge), (inf)))			\
-    abort ();						\
-							\
-  if (!islessgreater ((inf), (norm)))			\
-    abort ();						\
-							\
-  if (!isunordered ((nan), (norm)))			\
-    abort ();						\
-}
+#include <math.h>
+
+extern void abort(void);
+
+#define C99_MATH_TESTS(nan, inf, huge, norm, zero)	\
+{							\
+  if (fpclassify (nan) != FP_NAN)			\
+    abort ();						\
+							\
+  if (fpclassify (inf) != FP_INFINITE)			\
+    abort ();						\
+							\
+  if (fpclassify (huge) != FP_INFINITE)			\
+    abort ();						\
+							\
+  if (fpclassify (norm) != FP_NORMAL)			\
+    abort ();						\
+							\
+  if (fpclassify (zero) != FP_ZERO)			\
+    abort ();						\
+							\
+							\
+  if (!isnan (nan))					\
+    abort ();						\
+							\
+  if (isnan (inf))					\
+    abort ();						\
+							\
+  if (isnan (huge))					\
+    abort ();						\
+							\
+  if (isnan (norm))					\
+    abort ();						\
+							\
+  if (isnan (zero))					\
+    abort ();						\
+							\
+							\
+  if (isinf (nan))					\
+    abort ();						\
+							\
+  if (!isinf (inf))					\
+    abort ();						\
+							\
+  if (!isinf (huge))					\
+    abort ();						\
+							\
+  if (isnan (norm))					\
+    abort ();						\
+							\
+  if (isinf (zero))					\
+    abort ();						\
+							\
+							\
+  if (isfinite (nan))					\
+    abort ();						\
+							\
+  if (isfinite (inf))					\
+    abort ();						\
+							\
+  if (isfinite (huge))					\
+    abort ();						\
+							\
+  if (!isfinite (norm))					\
+    abort ();						\
+							\
+  if (!isfinite (zero))					\
+    abort ();						\
+							\
+							\
+  if (isnormal (nan))					\
+    abort ();						\
+							\
+  if (isnormal (inf))					\
+    abort ();						\
+							\
+  if (isnormal (huge))					\
+    abort ();						\
+							\
+  if (!isnormal (norm))					\
+    abort ();						\
+							\
+  if (isnormal (zero))					\
+    abort ();						\
+							\
+							\
+  if (signbit (norm))					\
+    abort ();						\
+							\
+  if (!signbit (-(norm)))				\
+    abort ();						\
+							\
+							\
+  if (!isgreater ((inf), (norm)))			\
+    abort ();						\
+							\
+  if (!isgreaterequal ((inf), (huge)))			\
+    abort ();						\
+							\
+  if (!isless ((norm), (inf)))				\
+    abort ();						\
+							\
+  if (!islessequal ((huge), (inf)))			\
+    abort ();						\
+							\
+  if (!islessgreater ((inf), (norm)))			\
+    abort ();						\
+							\
+  if (!isunordered ((nan), (norm)))			\
+    abort ();						\
+}


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