* @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#ifdef HAVE_STRING_H
# include <string.h>
/*-- initialized for each graph. --*/
res->kind = k_ir_graph;
- res->obst = xmalloc (sizeof(*res->obst));
+ res->obst = XMALLOC(struct obstack);
obstack_init(res->obst);
res->phase_state = phase_building;
#if USE_EXPLICIT_PHI_IN_STACK
res->Phi_in_stack = NULL;
#endif
- res->obst = xmalloc(sizeof(*res->obst));
+ res->obst = XMALLOC(struct obstack);
obstack_init (res->obst);
res->extbb_obst = NULL;
#if USE_EXPLICIT_PHI_IN_STACK
res->Phi_in_stack = NULL;
#endif
- res->obst = xmalloc(sizeof(*res->obst));
+ res->obst = XMALLOC(struct obstack);
obstack_init(res->obst);
res->extbb_obst = NULL;
assert(0 <= n && n < irg->n_loc);
if (! irg->loc_descriptions)
- irg->loc_descriptions = xcalloc(sizeof(*irg->loc_descriptions), irg->n_loc);
+ irg->loc_descriptions = XMALLOCNZ(void*, irg->n_loc);
irg->loc_descriptions[n] = description;
}