[PATCH, rs6000] Predefine __PPU__ to indicate -mcpu=cell
Andrew Pinski
pinskia@gmail.com
Sat Aug 9 19:16:00 GMT 2008
On Sat, Aug 9, 2008 at 6:11 AM, Ulrich Weigand <uweigand@de.ibm.com> wrote:
> Hello,
>
> the C/C++ Language Extensions document for the Cell/B.E. specifies that
> compilers for the Cell PPU should predefine the __PPU__ macro, and e.g.
> XLC and our current out-of-tree builds of GCC do so.
>
> This patch adds that define to the FSF GCC version as well.
>
> Tested on powerpc64-linux.
>
> OK for mainline and 4.3?
This will cause __PPU__ to defined if we use -mcpu=970 -mtune=cell
which is most likely not what we want to do.
rs6000_cpu is really the tunning setting rather than the cpu setting.
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list