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]

gcc-2.95 and complex on the alpha


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



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