OSDN Git Service

* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Aug 2008 20:36:57 +0000 (20:36 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Aug 2008 20:36:57 +0000 (20:36 +0000)
__PPU__ when targeting the Cell/B.E. PPU processor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139082 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c

index c6cf33c..2d43bcb 100644 (file)
@@ -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.
index 76c9235..8cbace8 100644 (file)
@@ -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)