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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|arm-linux-gnueabihf         |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-02-13
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |spop at gcc dot gnu.org
            Summary|[5 Regression] ICE in       |[5 Regression] ICE in
                   |add_phi_args_after_copy_edg |add_phi_args_after_copy_edg
                   |e, at tree-cfg.c on         |e, at tree-cfg.c
                   |arm-linux-gnueabihf         |
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Slightly cleaned up testcase (though, it still requires the invalid calls of
function requiring argument without the argument and missing return).
int a, b, c, d;
void fn (void);

int
foo (x)
{
  switch (x)
    {
    case 'A':
      return 'T';
    case 'U':
      return 'A';
    }
}

void
bar (int x, int y)
{
  switch (c)
    {
    case 'U':
    switch (x)
      {
      default:
    fn ();
      case 'G':
    switch (y)
      {
      case 'A':
        d = 7;
      }
      }
    }
}

void
baz (void)
{
  while (1)
    {
      a = foo ();
      b = foo ();
      bar (a, b);
    }
}

Started with r218451.

Reply via email to