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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Needs -O2 -g -mbranch-cost=1 to reproduce on x86_64-linux.

Cleaned up for testsuite:

unsigned char a;
enum E { F, G, H } b;
int c, d;

void
foo ()
{
  int e;
  bool f;
  E g = b;
  while (1)
    {
      unsigned char h = a ? d : 0;
      switch (g)
        {
        case 0:
          f = h <= 'Z' || h >= 'a' && h <= 'z';
          break;
        case 1:
          {
            unsigned char i = h;
            e = 0;
          }
          if (e || h)
            g = H;
          /* FALLTHRU */
        default:
          c = 0;
        }
    }
}

Reply via email to