aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorKaveh Ghazi <ghazi@gcc.gnu.org>2003-01-10 03:13:50 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-01-10 03:13:50 +0000
commit7048110fe1fec412457a0618e87725d6f6e96bd6 (patch)
tree9762c1cc7a389ba5ce2774e08e447baed695549b /gcc/java/parse.y
parent77d3109be28c227a324991307b0e2e46774b011c (diff)
downloadgcc-7048110fe1fec412457a0618e87725d6f6e96bd6.zip
gcc-7048110fe1fec412457a0618e87725d6f6e96bd6.tar.gz
gcc-7048110fe1fec412457a0618e87725d6f6e96bd6.tar.bz2
decl.c, [...]: Don't cast return value of xmalloc et al.
* decl.c, parse-scan.y, parse.y: Don't cast return value of xmalloc et al. From-SVN: r61138
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 65a1147..236525c 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -2183,10 +2183,10 @@ dims:
{
allocate *= sizeof (int);
if (ctxp->osb_number)
- ctxp->osb_number = (int *)xrealloc (ctxp->osb_number,
- allocate);
+ ctxp->osb_number = xrealloc (ctxp->osb_number,
+ allocate);
else
- ctxp->osb_number = (int *)xmalloc (allocate);
+ ctxp->osb_number = xmalloc (allocate);
}
ctxp->osb_depth++;
CURRENT_OSB (ctxp) = 1;
@@ -2660,7 +2660,7 @@ create_new_parser_context (copy_from_previous)
{
struct parser_ctxt *new;
- new = (struct parser_ctxt *) ggc_alloc (sizeof (struct parser_ctxt));
+ new = ggc_alloc (sizeof (struct parser_ctxt));
if (copy_from_previous)
{
memcpy (new, ctxp, sizeof (struct parser_ctxt));
@@ -5133,7 +5133,7 @@ static void
create_jdep_list (ctxp)
struct parser_ctxt *ctxp;
{
- jdeplist *new = (jdeplist *)xmalloc (sizeof (jdeplist));
+ jdeplist *new = xmalloc (sizeof (jdeplist));
new->first = new->last = NULL;
new->next = ctxp->classd_list;
ctxp->classd_list = new;
@@ -5188,7 +5188,7 @@ register_incomplete_type (kind, wfl, decl, ptr)
int kind;
tree wfl, decl, ptr;
{
- jdep *new = (jdep *)xmalloc (sizeof (jdep));
+ jdep *new = xmalloc (sizeof (jdep));
if (!ptr && kind != JDEP_METHOD_END) /* JDEP_METHOD_END is a mere marker */
ptr = obtain_incomplete_type (wfl);