This is the mail archive of the gcc@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]

PPro is broken in egcs


Hi,

Here is another test case for egcs on PPro:

# cc -S -O2 -march=i686 -B/home/work/gnu/bin/egcs/gcc/  r_tanh.c
cc: Internal compiler error: program cc1 got fatal signal 6

It looks like egcs is broken on PPro.


-- 
H.J. Lu (hjl@gnu.org)
---
Thu Mar 12 13:10:14 1998  H.J. Lu  (hjl@gnu.org)

	* gcc.dg/980312-1.c: Another new test for fp on PPro.

--- /dev/null	Wed Dec 31 16:00:00 1969
+++ gcc.dg/980312-1.c	Thu Mar 12 13:13:26 1998
@@ -0,0 +1,20 @@
+/* { dg-do compile { target i?86-*-* } } */
+/* { dg-options "-O2 -mach=pentiumpro" } */
+
+extern __inline  double
+__expm1 (double __x)
+{
+  double __temp;
+  __temp = 1.0;
+  return __temp;
+}
+extern __inline  double
+__sgn1 (double __x)
+{
+  return __x >= 0.0 ? 1.0 : -1.0;
+}
+double
+tanh (double __x)
+{
+  return  __expm1 (__x) * __sgn1 (-__x);
+}


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