From 8eb0977ac0333c11c8257646c07d4e30ede22166 Mon Sep 17 00:00:00 2001 From: gdr Date: Mon, 2 Aug 2004 16:45:52 +0000 Subject: 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 --- include/ChangeLog | 5 +++++ include/libiberty.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'include') 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 + + * libiberty.h (XDELETE, XDELETEVEC, XRESIZEVEC): Remove any + const-qualification before disposal. + 2004-07-24 Bernardo Innocenti * 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. */ -- cgit v1.2.1