public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/65048] [5 Regression] ICE in add_phi_args_after_copy_edge, at tree-cfg.c
Date: Fri, 13 Feb 2015 11:57:00 -0000	[thread overview]
Message-ID: <bug-65048-4-6q8Ic2Qwa9@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-65048-4@http.gcc.gnu.org/bugzilla/>

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.


  parent reply	other threads:[~2015-02-13 11:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13  0:02 [Bug target/65048] New: [5 Regression] ICE in add_phi_args_after_copy_edge, at tree-cfg.c on arm-linux-gnueabihf doko at gcc dot gnu.org
2015-02-13  9:17 ` [Bug middle-end/65048] " rguenth at gcc dot gnu.org
2015-02-13 11:57 ` jakub at gcc dot gnu.org [this message]
2015-02-13 17:56 ` [Bug middle-end/65048] [5 Regression] ICE in add_phi_args_after_copy_edge, at tree-cfg.c spop at gcc dot gnu.org
2015-02-24  9:42 ` jakub at gcc dot gnu.org
2015-02-26 14:52 ` law at gcc dot gnu.org
2015-02-26 14:55 ` law at redhat dot com
2015-02-26 15:03 ` law at redhat dot com
2015-02-27 15:15 ` jakub at gcc dot gnu.org
2015-10-28  9:01 ` yroux at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-65048-4-6q8Ic2Qwa9@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).