Thank you for responding!

That macro indeed seems to be defined:
```
$ gcc -arch ppc -E -dM - < /dev/null | grep -i '\(ppc\|powerpc\)' | sort
#define _ARCH_PPC 1
#define _ARCH_PPCGR 1
#define __POWERPC__ 1
#define __ppc__ 1
```
And for gcc14:
```
$ /opt/local/bin/gcc-mp-14 -arch ppc -E -dM - < /dev/null | grep -i
'\(ppc\|powerpc\)' | sort
#define PPC 1
#define _ARCH_PPC 1
#define _ARCH_PPCGR 1
#define __POWERPC__ 1
#define __PPC 1
#define __PPC__ 1
#define __ppc__ 1
```

However, `__powerpc__` is not.


On Wed, Oct 29, 2025 at 5:34 AM Bruno Haible <[email protected]> wrote:

> Hi,
>
> Sergey Fedorov wrote:
> > -#if ((defined _ARCH_PPC || defined _POWER) && LDBL_MANT_DIG == 106 \
> > +#if ((defined _ARCH_PPC || defined _POWER || defined __POWERPC__) &&
> LDBL_MANT_DIG == 106 \
>
> What are the relevant architecture predefines of your compiler?
>
> On Darwin 10.5, I get this:
>
> $ : | gcc -arch ppc -E -dM - | grep -i '\(ppc\|powerpc\)' | sort
> #define _ARCH_PPC 1
> #define __POWERPC__ 1
> #define __ppc__ 1
>
> which is consistent with
> <https://github.com/cpredef/predef/blob/master/Architectures.md>.
>
> What's the result of this command line with the compiler(s)
> that you are using?
>
> Bruno
>
>
>
>

Reply via email to