public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/61572] New: [4.10 Regression] ICE: in assign_by_spills, at lra-assigns.c:1335
@ 2014-06-20  7:47 trippels at gcc dot gnu.org
  2014-06-20 11:58 ` [Bug rtl-optimization/61572] " trippels at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-20  7:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61572
           Summary: [4.10 Regression] ICE: in assign_by_spills, at
                    lra-assigns.c:1335
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

Happens while building the Linux kernel:

markus@x4 linux-3.15 % cat test.i
struct autofs_sb_info
{
  int exp_timeout;
};
void *f;
int g;
int fn1 (struct autofs_sb_info *p1)
{
  int a, b;
  a = (
      {
        register __typeof__(0) c asm("rdx");
        b = c;
        int d;
        __typeof__(0) e;
        e = p1->exp_timeout / 1000;
        switch (0)
        default:
        asm("" : "=a"(d) : "0"(e), ""(0));
        d;
      });
  if (a)
    return 1;
  if (b)
    p1->exp_timeout = 0;
  return 0;
}

int fn2 ()
{
  struct autofs_sb_info *h = f;
  switch (g)
    {
    case 0 ?:
      0 : return fn1 (h);
    default:
      return 0;
    }
}

markus@x4 linux-3.15 % gcc -c -O2 root.i
fs/autofs4/root.c: In function ‘autofs4_root_ioctl_unlocked.isra.14’:
fs/autofs4/root.c:874:1: internal compiler error: in assign_by_spills, at
lra-assigns.c:1335
 }
 ^
0x8aa979 assign_by_spills
        ../../gcc/gcc/lra-assigns.c:1335
0x8ab2f3 lra_assign()
        ../../gcc/gcc/lra-assigns.c:1500
0x8a707b lra(_IO_FILE*)
        ../../gcc/gcc/lra.c:2230
0x8670c6 do_reload
        ../../gcc/gcc/ira.c:5325
0x8670c6 execute
        ../../gcc/gcc/ira.c:5486
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-454585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 20 07:47:53 2014
Return-Path: <gcc-bugs-return-454585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30922 invoked by alias); 20 Jun 2014 07:47:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30884 invoked by uid 48); 20 Jun 2014 07:47:50 -0000
From: "xinliangli at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61571] bad aliasing --> wrong FRE
Date: Fri, 20 Jun 2014 07:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xinliangli at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61571-4-Kf1oBNITEc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61571-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61571-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-06/txt/msg01667.txt.bz2
Content-length: 447

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida571

davidxl <xinliangli at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard.guenther at gmail dot com

--- Comment #2 from davidxl <xinliangli at gmail dot com> ---
The issue exists in trunk and as early as 4.7 (that i have tested).


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-06-24 10:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20  7:47 [Bug rtl-optimization/61572] New: [4.10 Regression] ICE: in assign_by_spills, at lra-assigns.c:1335 trippels at gcc dot gnu.org
2014-06-20 11:58 ` [Bug rtl-optimization/61572] " trippels at gcc dot gnu.org
2014-06-23 10:32 ` rguenth at gcc dot gnu.org
2014-06-23 19:50 ` vmakarov at gcc dot gnu.org
2014-06-24  8:32 ` [Bug tree-optimization/61572] " rguenth at gcc dot gnu.org
2014-06-24  8:35 ` rguenth at gcc dot gnu.org
2014-06-24  8:39 ` rguenth at gcc dot gnu.org
2014-06-24  8:47 ` trippels at gcc dot gnu.org
2014-06-24 10:01 ` rguenth at gcc dot gnu.org
2014-06-24 10:07 ` trippels at gcc dot gnu.org
2014-06-24 10:36 ` rguenth at gcc dot gnu.org
2014-06-24 10:37 ` rguenth at gcc dot gnu.org

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).