This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
More PPro bugs in egcs
- To: wilson at cygnus dot com
- Subject: More PPro bugs in egcs
- From: hjl at lucon dot org (H.J. Lu)
- Date: Wed, 18 Mar 1998 11:42:55 -0800 (PST)
- Cc: egcs at cygnus dot com
Hi,
This is another PPro bug.
# cc -S -O2 -march=i686 -B/home/work/gnu/bin/egcs/gcc/ -dra c_cos.c
cc: Internal compiler error: program cc1 got fatal signal 6
Thanks.
--
H.J. Lu (hjl@gnu.org)
----c_cos.c---
typedef double real;
typedef struct { real r, i; } complex;
extern __inline double sin ( double __x)
{
register double __result;
__asm __volatile__ ( "fsin" : "=t" (__result) : "0" (__x) );
return __result;
}
extern __inline double __sgn1l ( double __x )
{
return __x >= 0.0 ? 1.0 : -1.0;
}
extern __inline double sinh ( double __x )
{
return __x * __sgn1l (__x);
}
void c_cos(complex *resx, complex *z)
{
resx->i = - sin(z->r) * sinh(z->i);
}