PATCH: insn-attrtab vs. VM usage

grahams grahams@rcp.co.uk
Mon Oct 25 14:47:00 GMT 1999


Robert

My example was obviously wrong, forgot to remove the visited parameter.

Here's the corrected example.


/* The wrapper for pre_expr_reaches_here_work that ensures that any
   memory allocated for that function is returned. */

static int
pre_expr_reaches_here_p (occr_bb, expr, bb, check_pre_comp)
     int occr_bb;
     struct expr *expr;
     int bb;
     int check_pre_comp;
{
  int rval;
  char * visited = (char *) xcalloc (n_basic_blocks, 1);

  rval = pre_expr_reaches_here_p_work(occr_bb, expr, bb, check_pre_comp, 
                                     visited);

  free (visited);

  return (rval);
}

Graham


More information about the Gcc-patches mailing list