X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph.c;h=225862d90319e93d21f8110fe738cd9acc16dba7;hb=8399216d8aebc713bbda04b6e3e250a1d52b20bf;hp=3a5314cb4a1ad9173ef5e07d1832a001d38af070;hpb=bf5ebab86c9a9fa6042e90cf7b5273a36c80b927;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 3a5314cb4..225862d90 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -151,7 +151,7 @@ new_r_ir_graph (entity *ent, int n_loc) generation */ #endif res->kind = k_ir_graph; - res->obst = (struct obstack *) xmalloc (sizeof (struct obstack)); + res->obst = xmalloc (sizeof(*res->obst)); obstack_init (res->obst); res->value_table = new_identities (); /* value table for global value numbering for optimizing use in @@ -242,7 +242,7 @@ ir_graph *new_const_code_irg(void) { res->Phi_in_stack = NULL; #endif res->kind = k_ir_graph; - res->obst = (struct obstack *) xmalloc (sizeof (struct obstack)); + res->obst = xmalloc (sizeof(*res->obst)); obstack_init (res->obst); res->phase_state = phase_building; res->op_pin_state_pinned = op_pin_state_pinned; @@ -666,8 +666,8 @@ void * return __get_irg_link(irg); } -/* maximum visited flag content of all ir_graph visited fields. */ -static int max_irg_visited = 0; +/** maximum visited flag content of all ir_graph visited fields. */ +static unsigned long max_irg_visited = 0; unsigned long (get_irg_visited)(const ir_graph *irg) {