This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, rs6000] Predefine __PPU__ to indicate -mcpu=cell


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]