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 /include | |
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 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/libiberty.h | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index e62b3628190..6fabb45307b 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net> + + * libiberty.h (XDELETE, XDELETEVEC, XRESIZEVEC): Remove any + const-qualification before disposal. + 2004-07-24 Bernardo Innocenti <bernie@develer.com> * ansidecl.h (ARG_UNUSED): New Macro. diff --git a/include/libiberty.h b/include/libiberty.h index 68eeeae7396..a90b4ddcbe8 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -261,14 +261,14 @@ extern double physmem_available PARAMS ((void)); #define XNEW(T) ((T *) xmalloc (sizeof (T))) #define XCNEW(T) ((T *) xcalloc (1, sizeof (T))) -#define XDELETE(P) free ((P)) +#define XDELETE(P) free ((void*) (P)) /* Array allocators. */ #define XNEWVEC(T, N) ((T *) xmalloc (sizeof (T) * (N))) #define XCNEWVEC(T, N) ((T *) xcalloc ((N), sizeof (T))) -#define XRESIZEVEC(T, P, N) ((T *) xrealloc ((P), sizeof (T) * (N))) -#define XDELETEVEC(P) free ((P)) +#define XRESIZEVEC(T, P, N) ((T *) xrealloc ((void *) (P), sizeof (T) * (N))) +#define XDELETEVEC(P) free ((void*) (P)) /* Allocators for variable-sized structures and raw buffers. */ |