diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-12 21:06:06 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-12 21:06:06 +0000 |
commit | 0c5c4d5992e57440e4542c72b95bd1f02176193d (patch) | |
tree | d22d640fbcecf17e93ad6bd09fcfa0303860d3cd /gcc/config/spu/spu-c.c | |
parent | 1b410098c409dad80e1f6f1f37e8873cf483bd25 (diff) | |
download | gcc-0c5c4d5992e57440e4542c72b95bd1f02176193d.tar.gz |
* config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
member. Do not mark as GTY(()).
* config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
(spu_builtin_decls): New static variable.
(spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
(spu_init_builtins): Likewise.
(spu_builtin_mul_widen_even): Likewise.
(spu_builtin_mul_widen_odd): Likewise.
(spu_builtin_mask_for_load): Likewise.
(spu_builtin_vec_perm): Likewise.
* config/spu/spu-c.c: Include "target.h".
(spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
of using spu_builtins[].fndecl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162114 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/spu/spu-c.c')
-rw-r--r-- | gcc/config/spu/spu-c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/spu/spu-c.c b/gcc/config/spu/spu-c.c index ce5f92d94db..1f22cd6fb7c 100644 --- a/gcc/config/spu/spu-c.c +++ b/gcc/config/spu/spu-c.c @@ -24,6 +24,7 @@ #include "c-family/c-pragma.h" #include "tm_p.h" #include "langhooks.h" +#include "target.h" /* Keep the vector keywords handy for fast comparisons. */ @@ -111,7 +112,7 @@ spu_resolve_overloaded_builtin (location_t loc, tree fndecl, void *passed_args) 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; |