int i;
unsigned int i;
add_region (struct prof *p, int prof_uint){  unsigned long int nsamples;  size_t start, end;  int i;  if (p->pr_scale < 2)    return 0;  nsamples = p->pr_size / (prof_uint ? sizeof (int) : sizeof (short));  start = p->pr_off;  end = index_to_pc (nsamples, p->pr_off, p->pr_scale, prof_uint);  /* Merge with existing regions.  */  for (i = 0; i < prof_info.num_regions; ++i)    {      if (start < prof_info.region[i].start)	{	  if (end < prof_info.region[i].start)	    break;	  else if (insert (i, start, prof_info.region[i].start, p, prof_uint)		   < 0)	    return -1;	}      start = prof_info.region[i].end;    }  return insert (i, start, end, p, prof_uint);}