bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defines under MacOS X


From: Kevin Ryde
Subject: Re: Defines under MacOS X
Date: 24 Aug 2001 10:27:09 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

Jon Becker <address@hidden> writes:
> 
> It appears that cc under MacOS X does not define either "_ARCH_PPC"
> or "__powerpc__" (or "_ARCH_PWR" or course).  The symbol "__ppc__"
> is defined, so the following patch should do the trick:

Thanks.  The same for the umul just below too.  I had a nose around
gcc config/rs6000/*.h and added __POWERPC__, PPC and __vxworks__ too.
We might switch it one day to work from the configured host cpu name,
instead of predefines.

> FWIW, there's a test in gmp-impl.h which checks for _ARCH_PPC, but not
> __powerpc__.  On MacOS X this doesn't matter because it also tests for
> __BIG_ENDIAN__, which is defined.

Those float format ifdefs are a bit yuck.  We want to change to a
configure test in the future, which is easy enough for a native
compile, but a bit tricky for cross compiling.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]