------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-14 
14:54 -------
Here is a testcase which does not use builtins:
struct link_map {
  struct link_map *next;
  unsigned int start, end;
};
void *f();

void
foo (struct link_map **array, long int cnt)
{
  struct link_map *l;
  const void *caller =f();
  long int ns = 0;
  for (l = array[cnt]; l; l = l->next)
    {
      if (caller >= (const void *) l->start
          && caller < (const void *) l->end)
        ns = cnt;
    }
  for (l = array[ns]; l != 0; l = l->next)
    ;
}

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21021

Reply via email to