diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/langhooks.h | 2 | ||||
-rw-r--r-- | gcc/vec.h | 12 |
3 files changed, 14 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7dc0a5b..23750e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net> + + * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and + vec_p_reserve. + * langhooks.h (lang_hooks::builtin_function): Rename parameter + from "class" to "bt_class". + 2004-08-02 Paul Brook <paul@codesourcery.com> PR rtl-optimization/15068 diff --git a/gcc/langhooks.h b/gcc/langhooks.h index 04dc114..108b451 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -411,7 +411,7 @@ struct lang_hooks the name to be called if we can't opencode the function. If ATTRS is nonzero, use that for the function's attribute list. */ tree (*builtin_function) (const char *name, tree type, int function_code, - enum built_in_class class, + enum built_in_class bt_class, const char *library_name, tree attrs); /* Whenever you add entries here, make sure you adjust langhooks-def.h @@ -390,7 +390,7 @@ static inline int VEC_OP (TDEF,iterate) \ static inline VEC (TDEF) *VEC_OP (TDEF,alloc) \ (int alloc_ MEM_STAT_DECL) \ { \ - return vec_p_reserve (NULL, alloc_ - !alloc_ PASS_MEM_STAT); \ + return (VEC (TDEF) *) vec_p_reserve (NULL, alloc_ - !alloc_ PASS_MEM_STAT);\ } \ \ static inline size_t VEC_OP (TDEF,embedded_size) \ @@ -419,7 +419,7 @@ static inline int VEC_OP (TDEF,reserve) \ int extend = VEC_OP (TDEF,space) (*vec_, alloc_); \ \ if (extend) \ - *vec_ = vec_p_reserve (*vec_, alloc_ PASS_MEM_STAT); \ + *vec_ = (VEC (TDEF) *) vec_p_reserve (*vec_, alloc_ PASS_MEM_STAT); \ \ return extend; \ } \ @@ -583,9 +583,9 @@ static inline int VEC_OP (TDEF,iterate) \ static inline VEC (TDEF) *VEC_OP (TDEF,alloc) \ (int alloc_ MEM_STAT_DECL) \ { \ - return vec_o_reserve (NULL, alloc_ - !alloc_, \ - offsetof (VEC(TDEF),vec), sizeof (TDEF) \ - PASS_MEM_STAT); \ + return (VEC (TDEF) *) vec_o_reserve (NULL, alloc_ - !alloc_, \ + offsetof (VEC(TDEF),vec), sizeof (TDEF)\ + PASS_MEM_STAT); \ } \ \ static inline size_t VEC_OP (TDEF,embedded_size) \ @@ -614,7 +614,7 @@ static inline int VEC_OP (TDEF,reserve) \ int extend = VEC_OP (TDEF,space) (*vec_, alloc_); \ \ if (extend) \ - *vec_ = vec_o_reserve (*vec_, alloc_, \ + *vec_ = (VEC (TDEF) *) vec_o_reserve (*vec_, alloc_, \ offsetof (VEC(TDEF),vec), sizeof (TDEF) \ PASS_MEM_STAT); \ \ |