This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95 and complex on the alpha
- To: egcs at egcs dot cygnus dot com
- Subject: gcc-2.95 and complex on the alpha
- From: Christian Iseli <chris at ludwig-alpha dot unil dot ch>
- Date: Mon, 26 Jul 1999 13:29:29 +0200
Hi folks,
I have a problem compiling glibc-2.1.2 on an alpha. The following code
snippet fails to compile.
float __complex__
__conjf (float __complex__ z)
{
return ~z;
}
alpha_chris$ gcc -c toto.c
toto.c: In function `__conjf':
toto.c:3: Unable to access imaginary part of complex value in a hard register
on this target
alpha_chris$ gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/2.95/specs
gcc version 2.95 19990718 (prerelease)
This is without any optimization. Is this supposed to happen, and if so, what
is the proper way to rewrite the above code (I know close to nothing about the
implementation of complex... I know there are problems, but I thought they
occured only when trying to optimize...)
Cheers,
Christian