* function.c (free_after_compilation): Don't free NULL.
* gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
(pre_edge_insert): Free inserted.
* stmt.c (free_stmt_status): Don't free NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30255
138bc75d-0d04-0410-961f-
82ee72b054a4
+Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
+
+ * except.c (free_eh_nesting_info): Free the info itself.
+ * function.c (free_after_compilation): Don't free NULL.
+ * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
+ (pre_edge_insert): Free inserted.
+ * stmt.c (free_stmt_status): Don't free NULL.
+
1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
* cpplib.h (struct cpp_buffer: fname, nominal_fname,
free (info->handlers[x]);
free (info->handlers);
}
+ free (info);
}
}
if (free_machine_status)
(*free_machine_status) (f);
- free (f->x_parm_reg_stack_loc);
+ if (f->x_parm_reg_stack_loc)
+ free (f->x_parm_reg_stack_loc);
f->arg_offset_rtx = NULL;
f->return_rtx = NULL;
transp = sbitmap_vector_alloc (n_blocks, n_exprs);
comp = sbitmap_vector_alloc (n_blocks, n_exprs);
antloc = sbitmap_vector_alloc (n_blocks, n_exprs);
-
temp_bitmap = sbitmap_vector_alloc (n_blocks, n_exprs);
+
pre_optimal = NULL;
pre_redundant = NULL;
pre_insert_map = NULL;
free (transp);
free (comp);
free (antloc);
+ free (temp_bitmap);
if (pre_optimal)
free (pre_optimal);
}
}
}
+
+ /* Clean up. */
+ free (inserted);
+
return did_insert;
}
/* We're about to free the function obstack. If we hold pointers to
things allocated there, then we'll try to mark them when we do
GC. So, we clear them out here explicitly. */
-
- free (f->stmt);
+ if (f->stmt)
+ free (f->stmt);
f->stmt = NULL;
}