INSN_SCOPE changes break mips-elf

Richard Henderson rth@redhat.com
Thu Jun 20 12:05:00 GMT 2002


On Thu, Jun 20, 2002 at 08:53:12PM +0200, Jan Hubicka wrote:
> Any idea how to implement it in fast enought way given that block
> numbers are not computed?

  /* If we've only got one scope, return it.  */
  if (!s1)
    return s2;
  if (!s2)
    return s1;

  /* If one of the scopes is a child of the other, 
     return the inner scope.  */
  for (t = s1; t ; t = BLOCK_SUPERCONTEXT (t))
    if (t == s2)
      return s1;

  for (t = s2; t ; t = BLOCK_SUPERCONTEXT (t))
    if (t == s1)
      return s2;

  /* Otherwise, we've got no way to represent the union of
     the two scopes.  Throw away half, rather than all, of
     the debug information by selecting one of the scopes
     at random.  */
  return s1;



r~



More information about the Gcc-patches mailing list