From: Ulrich Weigand Date: Wed, 13 Aug 2008 20:36:57 +0000 (+0000) Subject: rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine __PPU__ when targeting the Cell/B... X-Git-Tag: releases/gcc-4.4.0~3146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f3c92569ea2bbb26f55e3162af1378e072ba6e9;p=thirdparty%2Fgcc.git rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine __PPU__ when targeting the Cell/B.E. PPU processor. * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine __PPU__ when targeting the Cell/B.E. PPU processor. From-SVN: r139082 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6cf33c20f26..2d43bcb45d40 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-08-13 Ulrich Weigand + + * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine + __PPU__ when targeting the Cell/B.E. PPU processor. + 2008-08-13 Eric Botcazou * gimple.h (gimple_call_set_chain): Accept SSA variables. diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index 76c92352b578..8cbace8a7956 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -278,6 +278,8 @@ rs6000_cpu_cpp_builtins (cpp_reader *pfile) cpp_get_callbacks (pfile)->macro_to_expand = rs6000_macro_to_expand; } } + if (rs6000_cpu == PROCESSOR_CELL) + builtin_define ("__PPU__"); if (TARGET_SPE) builtin_define ("__SPE__"); if (TARGET_PAIRED_FLOAT)