On Apr 14, 2025, Peter Bergner <berg...@linux.ibm.com> wrote:

> On 4/11/25 1:03 PM, Alexandre Oliva wrote:
>> gcc.dg/pr87600.h and gcc.dg/pr89313.c test for __powerpc__ and
>> __POWERPC__ to choose ppc register names, but ppc-elf defines neither;
>> it defines __PPC__, so test for that as well.

> Is there a reason why powerpc-*-elf doesn't define __powerpc__ or
> __POWERPC__ like we do for other powerpc* targets?

-ENOCLUE :-(

It doesn't seem to be uniform.

darwin.h defines __POWERPC__; 32-bit freebsd.h defines neither (though
freebsd64.h defines __powerpc__ with -m32); sysv4.h defines neither.
It seems to be a long and messy history.

> That said, I think this probably falls under the "obvious" rule too.

Thanks,

-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to