This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
PPro is broken in egcs
- To: egcs at cygnus dot com
- Subject: PPro is broken in egcs
- From: hjl at lucon dot org (H.J. Lu)
- Date: Thu, 12 Mar 1998 13:16:22 -0800 (PST)
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);
+}