diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-08-13 20:36:57 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2008-08-13 20:36:57 +0000 |
commit | 9f3c92569ea2bbb26f55e3162af1378e072ba6e9 (patch) | |
tree | 0aaa5e22a44f43e321ca71cad9892d937a3a123c | |
parent | 8d019b6593682b4c6bc1f42182ce9e2f8dba5134 (diff) | |
download | gcc-9f3c92569ea2bbb26f55e3162af1378e072ba6e9.zip gcc-9f3c92569ea2bbb26f55e3162af1378e072ba6e9.tar.gz gcc-9f3c92569ea2bbb26f55e3162af1378e072ba6e9.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000-c.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6cf33c..2d43bcb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + + * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine + __PPU__ when targeting the Cell/B.E. PPU processor. + 2008-08-13 Eric Botcazou <ebotcazou@adacore.com> * 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 76c9235..8cbace8 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) |