https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91355

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection             |
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced:

extern "C" int printf(const char*, ...);

unsigned int Depth = 0;


class Bar {
public:
  Bar() { Depth++; }
  ~Bar() { Depth--; }
};

void Foo(int i) throw(int)
{
  if (i == 0) {
    throw 3;
  }

  Bar Depth;

  throw 3;
}

int main()
{
  try {
    Foo(1);
  } catch (...) {
  }

  printf("%u\n", Depth);

  return 0;
}


Behaviour changed with r254698:

            * tree-ssa-sink.c (select_best_block): Do not use frequencies.

Reply via email to