Mercurial > hg > CbC > CbC_gcc
diff gcc/config/spu/spu-c.c @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
line wrap: on
line diff
--- a/gcc/config/spu/spu-c.c Tue May 25 18:58:51 2010 +0900 +++ b/gcc/config/spu/spu-c.c Tue Mar 22 17:18:12 2011 +0900 @@ -20,17 +20,11 @@ #include "tm.h" #include "cpplib.h" #include "tree.h" -#include "c-tree.h" -#include "c-pragma.h" -#include "function.h" -#include "rtl.h" -#include "expr.h" +#include "c-family/c-common.h" +#include "c-family/c-pragma.h" #include "tm_p.h" #include "langhooks.h" -#include "insn-config.h" -#include "insn-codes.h" -#include "recog.h" -#include "optabs.h" +#include "target.h" /* Keep the vector keywords handy for fast comparisons. */ @@ -101,7 +95,7 @@ || POINTER_TYPE_P (t)) VEC(tree,gc) *fnargs = (VEC(tree,gc) *) passed_args; unsigned int nargs = VEC_length (tree, fnargs); - int new_fcode, fcode = DECL_FUNCTION_CODE (fndecl) - END_BUILTINS; + int new_fcode, fcode = DECL_FUNCTION_CODE (fndecl); struct spu_builtin_description *desc; tree match = NULL_TREE; @@ -118,7 +112,7 @@ for (new_fcode = fcode + 1; spu_builtins[new_fcode].type == B_INTERNAL; new_fcode++) { - tree decl = spu_builtins[new_fcode].fndecl; + tree decl = targetm.builtin_decl (new_fcode, true); tree params = TYPE_ARG_TYPES (TREE_TYPE (decl)); tree param; bool all_scalar; @@ -194,19 +188,19 @@ void spu_cpu_cpp_builtins (struct cpp_reader *pfile) { - builtin_define_std ("__SPU__"); + cpp_define (pfile, "__SPU__"); cpp_assert (pfile, "cpu=spu"); cpp_assert (pfile, "machine=spu"); if (spu_arch == PROCESSOR_CELLEDP) - builtin_define_std ("__SPU_EDP__"); - builtin_define_std ("__vector=__attribute__((__spu_vector__))"); + cpp_define (pfile, "__SPU_EDP__"); + cpp_define (pfile, "__vector=__attribute__((__spu_vector__))"); switch (spu_ea_model) { case 32: - builtin_define_std ("__EA32__"); + cpp_define (pfile, "__EA32__"); break; case 64: - builtin_define_std ("__EA64__"); + cpp_define (pfile, "__EA64__"); break; default: gcc_unreachable ();