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]

More PPro bugs in egcs


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);
}


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