This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000] Predefine __PPU__ to indicate -mcpu=cell
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, dje at watson dot ibm dot com
- Date: Sat, 9 Aug 2008 12:04:44 -0700
- Subject: Re: [PATCH, rs6000] Predefine __PPU__ to indicate -mcpu=cell
- References: <200808091311.m79DBwIW026880@d12av02.megacenter.de.ibm.com>
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