diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-02 16:45:52 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-02 16:45:52 +0000 |
commit | 8eb0977ac0333c11c8257646c07d4e30ede22166 (patch) | |
tree | bf0f8b7e626dc9c8437fc98e1faad01c2a368052 /gcc/vec.h | |
parent | 75ca193d19857ec8d0c4eb622e06398f15570bfc (diff) | |
download | gcc-8eb0977ac0333c11c8257646c07d4e30ede22166.tar.gz |
include/
* libiberty.h (XDELETE, XDELETEVEC, XRESIZEVEC): Remove any
const-qualification before disposal.
gcc/
* 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".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85441 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/vec.h')
-rw-r--r-- | gcc/vec.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/vec.h b/gcc/vec.h index 885e5473610..33d9bf6a6dd 100644 --- a/gcc/vec.h +++ b/gcc/vec.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); \ \ |