public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
@ 2015-06-04  4:50 su at cs dot ucdavis.edu
  2015-06-22 12:05 ` [Bug rtl-optimization/66412] [5/6 Regression] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-06-04  4:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66412
           Summary: ICE on valid code at -O2 and -O3 with -g enabled in
                    simplify_subreg, at simplify-rtx.c:5748
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

The following code causes an ICE when compiled with the current gcc trunk at
-O2 and -O3 with -g enabled on x86_64-linux-gnu in both 32-bit and 64-bit
modes.

This is a regression from 4.9.x.

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20150603 (experimental) [trunk revision 224056] (GCC) 
$ 
$ gcc-trunk -O2 -c small.c
$ gcc-trunk -Os -g -c small.c
$ gcc-4.9.2 -O2 -g -c small.c
$ 
$ gcc-trunk -O2 -g -c small.c
small.c: In function ‘fn1’:
small.c:12:1: internal compiler error: in simplify_subreg, at
simplify-rtx.c:5743
 }
 ^
0xae6809 simplify_subreg(machine_mode, rtx_def*, machine_mode, unsigned int)
        ../../gcc-trunk/gcc/simplify-rtx.c:5742
0xae6bf9 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, unsigned
int)
        ../../gcc-trunk/gcc/simplify-rtx.c:5962
0xae9176 simplify_replace_fn_rtx(rtx_def*, rtx_def const*, rtx_def*
(*)(rtx_def*, rtx_def const*, void*), void*)
        ../../gcc-trunk/gcc/simplify-rtx.c:524
0xd9b7ef propagate_for_debug(rtx_insn*, rtx_insn*, rtx_def*, rtx_def*,
basic_block_def*)
        ../../gcc-trunk/gcc/valtrack.c:210
0x106d801 try_combine
        ../../gcc-trunk/gcc/combine.c:4399
0x1071301 combine_instructions
        ../../gcc-trunk/gcc/combine.c:1324
0x1071301 rest_of_handle_combine
        ../../gcc-trunk/gcc/combine.c:14326
0x1071301 execute
        ../../gcc-trunk/gcc/combine.c:14369
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.
$ 


-----------------------------------------


int a, b, c, d;

void
fn1 ()
{
  short e;
  for (c = 0; c < 1; c++)
    d = 0;
  unsigned short g = ((a == 0) ^ d) % 8;
  e = g << 1;
  b = e && 1;
}
>From gcc-bugs-return-488062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 04 05:02:14 2015
Return-Path: <gcc-bugs-return-488062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113856 invoked by alias); 4 Jun 2015 05:02:13 -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 113821 invoked by uid 48); 4 Jun 2015 05:02:08 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66413] New: ICE at -Os and above with -g enabled on x86_64-linux-gnu
Date: Thu, 04 Jun 2015 05:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-66413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00394.txt.bz2
Content-length: 2743

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

            Bug ID: 66413
           Summary: ICE at -Os and above with -g enabled on
                    x86_64-linux-gnu
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

The following code causes an ICE when compiled with the current gcc trunk at
-Os and above with -g enabled on x86_64-linux-gnu in both 32-bit and 64-bit
modes.

This is a regression from 5.1.x. 

The test case is still quite complex, but I couldn't seem to reduce it further. 


$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20150603 (experimental) [trunk revision 224056] (GCC) 
$ 
$ gcc-trunk -Os small.c; ./a.out
$ gcc-trunk -O1 -g small.c; ./a.out
$ gcc-5.1.0 -Os -g small.c; ./a.out
$ 
$ gcc-trunk -Os -g small.c
small.c: In function ‘fn4.constprop’:
small.c:39:1: error: location references block not in block tree
 fn4 (int *p1)
 ^
&d
# DEBUG p1 => &d
small.c:39:1: internal compiler error: verify_gimple failed
0xb456c7 verify_gimple_in_cfg(function*, bool)
        ../../gcc-trunk/gcc/tree-cfg.c:5137
0xa3f3b7 execute_function_todo
        ../../gcc-trunk/gcc/passes.c:1946
0xa3fc23 execute_todo
        ../../gcc-trunk/gcc/passes.c:2003
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.
$ 


---------------------------------------------------


int a, b, c, d, i, j, q, *e, *h, *k, *r, **p = &e;
const int *f, **n = &f;
static int g;

void
fn1 (int p1)
{
  c = p1;
}

static int *
fn2 (int *p1, const int *p2)
{
  if (g)
    n = &p2;
  *n = p2;
  int o[245];
  fn1 (o != p2);
  return p1;
}

static int *
fn3 ()
{
  int s[54], *t = &s[0], u = 0, v = 1;
  h = &v;
  q = 1;
  for (; q; q++)
    {
      int *w[] = { &u };
      for (; v;)
        return *p;
    }
  *r = *t + b >= 0;
  return *p;
}

static int
fn4 (int *p1)
{
  int *l[2], **m[7];
  for (; i < 1; i++)
    for (; j < 1; j++)
      m[i * 70] = &l[0];
  k = fn3 ();
  fn2 (0, p1);
  if ((m[0] == 0) & a)
    for (;;)
      ;
  return 0;
}

int
main ()
{
  fn4 (&d);
  return 0;
}
>From gcc-bugs-return-488063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 04 07:19:39 2015
Return-Path: <gcc-bugs-return-488063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99880 invoked by alias); 4 Jun 2015 07:19:39 -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 99836 invoked by uid 48); 4 Jun 2015 07:19:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
Date: Thu, 04 Jun 2015 07:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-66412-4-b9FwR9fdJm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66412-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: 2015-06/txt/msg00395.txt.bz2
Content-length: 969

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-06-04
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |5.2
            Summary|ICE on valid code at -O2    |[5/6 Regression] ICE on
                   |and -O3 with -g enabled in  |valid code at -O2 and -O3
                   |simplify_subreg, at         |with -g enabled in
                   |simplify-rtx.c:5748         |simplify_subreg, at
                   |                            |simplify-rtx.c:5748
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r219491.


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
@ 2015-06-22 12:05 ` rguenth at gcc dot gnu.org
  2015-06-23  8:35 ` ubizjak at gmail dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-22 12:05 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
  2015-06-22 12:05 ` [Bug rtl-optimization/66412] [5/6 Regression] " rguenth at gcc dot gnu.org
@ 2015-06-23  8:35 ` ubizjak at gmail dot com
  2015-06-24 16:13 ` ubizjak at gmail dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ubizjak at gmail dot com @ 2015-06-23  8:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
(gdb) bt
#0  internal_error (gmsgid=0x1d02fb5 "in %s, at %s:%d") at
/home/uros/gcc-svn/trunk/gcc/diagnostic.c:1270
#1  0x00000000017291d7 in fancy_abort (file=0x1863c90
"/home/uros/gcc-svn/trunk/gcc/simplify-rtx.c", line=5750, 
    function=0x1864b40 <simplify_subreg(machine_mode, rtx_def*, machine_mode,
unsigned int)::__FUNCTION__> "simplify_subreg")
    at /home/uros/gcc-svn/trunk/gcc/diagnostic.c:1340
#2  0x0000000000d71e51 in simplify_subreg (outermode=HImode, op=0x2aaaae8eacd8,
innermode=SImode, byte=0)
    at /home/uros/gcc-svn/trunk/gcc/simplify-rtx.c:5749
#3  0x0000000000d72b41 in simplify_gen_subreg (outermode=HImode,
op=0x2aaaae8eacd8, innermode=SImode, byte=0)
    at /home/uros/gcc-svn/trunk/gcc/simplify-rtx.c:5969
#4  0x0000000000d77a93 in simplify_replace_fn_rtx (x=0x2aaaae8ea5b8,
old_rtx=0x2aaaae8ea2d0, 
    fn=0x10c06e6 <propagate_for_debug_subst(rtx, const_rtx, void*)>,
data=0x7fffffffc490) at /home/uros/gcc-svn/trunk/gcc/simplify-rtx.c:511
#5  0x00000000010c0685 in propagate_for_debug (insn=0x2aaaae7bc480,
last=0x2aaaae7bc5c0, dest=0x2aaaae8ea2d0, src=0x2aaaae8eaa38, 
    this_basic_block=0x2aaaae7b3958) at
/home/uros/gcc-svn/trunk/gcc/valtrack.c:205
#6  0x00000000015e1a04 in try_combine (i3=0x2aaaae7bc580, i2=0x2aaaae7bc540,
i1=0x2aaaae7bc400, i0=0x0, new_direct_jump_p=0x7fffffffcc04, 
    last_combined_insn=0x2aaaae7bc580) at
/home/uros/gcc-svn/trunk/gcc/combine.c:4386

(gdb) f 2
#2  0x0000000000d71e51 in simplify_subreg (outermode=HImode, op=0x2aaaae8eacd8,
innermode=SImode, byte=0)
    at /home/uros/gcc-svn/trunk/gcc/simplify-rtx.c:5749
5749      gcc_assert (GET_MODE (op) == innermode
(gdb) p op
$18 = (rtx) 0x2aaaae8eacd8
(gdb) p debug_rtx (op)
(eq:QI (reg:CCZ 17 flags)
    (const_int 0 [0]))
>From gcc-bugs-return-489876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 23 08:42:01 2015
Return-Path: <gcc-bugs-return-489876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105318 invoked by alias); 23 Jun 2015 08:40:11 -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 7565 invoked by uid 48); 23 Jun 2015 08:28:54 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/50008] [4.8 Regression] type mismatch in array reference, verify_gimple failed
Date: Tue, 23 Jun 2015 08:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone cf_known_to_fail
Message-ID: <bug-50008-4-HRfKIMbgAq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50008-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50008-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: 2015-06/txt/msg02206.txt.bz2
Content-length: 548

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.8.5                       |4.9.0
      Known to fail|                            |4.8.5

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for 4.9.0.


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
  2015-06-22 12:05 ` [Bug rtl-optimization/66412] [5/6 Regression] " rguenth at gcc dot gnu.org
  2015-06-23  8:35 ` ubizjak at gmail dot com
@ 2015-06-24 16:13 ` ubizjak at gmail dot com
  2015-06-24 16:17 ` ubizjak at gmail dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ubizjak at gmail dot com @ 2015-06-24 16:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
This testcase exposes latent problem in combine pass in conjunction with debug.

We start with:

[...]

(insn 8 7 9 2 (set (reg:QI 95)
        (eq:QI (reg:CCZ 17 flags)
            (const_int 0 [0]))) pr66412.c:9 597 {*setcc_qi}
     (expr_list:REG_DEAD (reg:CCZ 17 flags)
        (nil)))
(insn 9 8 11 2 (set (reg:SI 94 [ D.1784 ])
        (zero_extend:SI (reg:QI 95))) pr66412.c:9 134 {*zero_extendqisi2}
     (expr_list:REG_DEAD (reg:QI 95)
        (nil)))
(debug_insn 11 9 12 2 (var_location:HI g (subreg:HI (reg:SI 94 [ D.1784 ]) 0))
pr66412.c:9 -1
     (nil))
(debug_insn 12 11 13 2 (var_location:HI e (subreg:HI (ashift:SI (reg:SI 94 [
D.1784 ])
            (const_int 1 [0x1])) 0)) pr66412.c:10 -1
     (nil))
(insn 13 12 14 2 (parallel [
            (set (reg:SI 96 [ D.1783 ])
                (ashift:SI (reg:SI 94 [ D.1784 ])
                    (const_int 1 [0x1])))
            (clobber (reg:CC 17 flags))
        ]) pr66412.c:11 501 {*ashlsi3_1}
     (expr_list:REG_DEAD (reg:SI 94 [ D.1784 ])
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (nil))))
(insn 14 13 15 2 (set (reg:CCZ 17 flags)
        (compare:CCZ (subreg:HI (reg:SI 96 [ D.1783 ]) 0)
            (const_int 0 [0]))) pr66412.c:11 2 {*cmphi_ccno_1}
     (expr_list:REG_DEAD (reg:SI 96 [ D.1783 ])
        (nil)))
(insn 15 14 16 2 (set (reg:QI 98)
        (ne:QI (reg:CCZ 17 flags)
            (const_int 0 [0]))) pr66412.c:11 597 {*setcc_qi}
     (expr_list:REG_DEAD (reg:CCZ 17 flags)
        (nil)))

[...]

and combine pass sequentially combines several insns into (insn 15):

Trying 8 -> 9:
Successfully matched this instruction:
(set (reg:SI 94 [ D.1784 ])
    (eq:SI (reg:CCZ 17 flags)
        (const_int 0 [0])))
allowing combination of insns 8 and 9
original costs 4 + 4 = 8
replacement cost 4
deferring deletion of insn with uid = 8.
modifying insn i3     9: r94:SI=flags:CCZ==0
      REG_DEAD flags:CCZ
deferring rescan insn with uid = 9.

Trying 13 -> 14:
Successfully matched this instruction:
(set (reg:CCZ 17 flags)
    (compare:CCZ (ashift:SI (reg:SI 94 [ D.1784 ])
            (const_int 1 [0x1]))
        (const_int 0 [0])))
allowing combination of insns 13 and 14
original costs 4 + 4 = 8
replacement cost 4
deferring deletion of insn with uid = 13.
modifying insn i3    14: {flags:CCZ=cmp(r94:SI<<0x1,0);clobber scratch;}
      REG_DEAD r94:SI
deferring rescan insn with uid = 14.

Trying 9, 14 -> 15:
Failed to match this instruction:
(set (reg:QI 98)
    (ne:QI (eq:SI (reg:CCZ 17 flags)
            (const_int 0 [0]))
        (const_int 0 [0])))
Splitting with gen_split_5441
Successfully matched this instruction:
(set (reg:QI 98)
    (eq:QI (reg:CCZ 17 flags)
        (const_int 0 [0])))
allowing combination of insns 9, 14 and 15
original costs 4 + 4 + 4 = 12
replacement cost 4
deferring deletion of insn with uid = 14.

Calling propagate_for_debug for:

(debug_insn 11 9 12 2 (var_location:HI g (subreg:HI (reg:SI 94 [ D.1784 ]) 0))
pr66412.c:9 -1
     (nil))

we found (wrong) replacement for (reg:SI 94):

(eq:QI (reg:CCZ 17 flags)
    (const_int 0 [0]))

and we try to call simplify_gen_subreg with:

(gdb) f 3
#3  0x0000000000aa2aaa in simplify_gen_subreg (outermode=HImode,
op=0x7ffff12aff00, innermode=SImode, byte=0) at
/home/uros/gcc-svn/trunk/gcc/simplify-rtx.c:5969
5969      newx = simplify_subreg (outermode, op, innermode, byte);
(gdb) p debug_rtx (op)
(eq:QI (reg:CCZ 17 flags)
    (const_int 0 [0]))

which crashes at:

#2  0x0000000000aa261a in simplify_subreg (outermode=HImode, op=0x7ffff12aff00,
innermode=SImode, byte=0) at /home/uros/gcc-svn/trunk/gcc/simplify-rtx.c:5749
5749      gcc_assert (GET_MODE (op) == innermode
>From gcc-bugs-return-490084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 24 16:16:39 2015
Return-Path: <gcc-bugs-return-490084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86779 invoked by alias); 24 Jun 2015 16:16:39 -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 86738 invoked by uid 48); 24 Jun 2015 16:16:35 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/66650] libgfortran: warning: left shift of negative value [-Wshift-negative-value]
Date: Wed, 24 Jun 2015 16:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-66650-4-sfb2lkZURc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66650-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66650-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: 2015-06/txt/msg02416.txt.bz2
Content-length: 556

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-06-24
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed for r222892 and more recent revisions, not present for r222830.


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
                   ` (2 preceding siblings ...)
  2015-06-24 16:13 ` ubizjak at gmail dot com
@ 2015-06-24 16:17 ` ubizjak at gmail dot com
  2015-06-24 16:27 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ubizjak at gmail dot com @ 2015-06-24 16:17 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

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

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
CC combine pass expert.
>From gcc-bugs-return-490086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 24 16:18:07 2015
Return-Path: <gcc-bugs-return-490086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90827 invoked by alias); 24 Jun 2015 16:18:07 -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 90719 invoked by uid 48); 24 Jun 2015 16:18:02 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/66482] [6 Regression] ICE in gen_formal_parameter_die
Date: Wed, 24 Jun 2015 16:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-66482-4-VlLFgr7cwc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66482-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66482-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: 2015-06/txt/msg02418.txt.bz2
Content-length: 620

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Fixed in mainline.

Sorry, I forgot to include the PR in the commit message (though it is in the
ChangeLog), so bugzilla didn't pick it up:

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision"4907


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
                   ` (3 preceding siblings ...)
  2015-06-24 16:17 ` ubizjak at gmail dot com
@ 2015-06-24 16:27 ` jakub at gcc dot gnu.org
  2015-06-24 16:31 ` ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-24 16:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I bet the bug is in whatever creates the mode mismatch.


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
                   ` (4 preceding siblings ...)
  2015-06-24 16:27 ` jakub at gcc dot gnu.org
@ 2015-06-24 16:31 ` ubizjak at gmail dot com
  2015-06-24 19:44 ` segher at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ubizjak at gmail dot com @ 2015-06-24 16:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Uroš Bizjak <ubizjak at gmail dot com> ---
Please note that combine already calls propagate_for_debug with wrong i1src:

reakpoint 3, internal_error (gmsgid=gmsgid@entry=0x1622837 "in %s, at %s:%d")
at /home/uros/gcc-svn/trunk/gcc/diagnostic.c:1266
1266    {
(gdb) f 6
#6  0x000000000103276c in try_combine (i3=i3@entry=0x7ffff171c580,
i2=<optimized out>, i2@entry=0x7ffff171c540, i1=<optimized out>, i0=<optimized
out>, i0@entry=0x0, 
    new_direct_jump_p=new_direct_jump_p@entry=0x7fffffffd95c,
last_combined_insn=last_combined_insn@entry=0x7ffff171c580) at
/home/uros/gcc-svn/trunk/gcc/combine.c:4386
4386                                   this_basic_block);
(gdb) list
4381          {
4382            LOG_LINKS (i1) = NULL;
4383            REG_NOTES (i1) = 0;
4384            if (MAY_HAVE_DEBUG_INSNS)
4385              propagate_for_debug (i1, last_combined_insn, i1dest, i1src,
4386                                   this_basic_block);
4387            SET_INSN_DELETED (i1);
4388          }
4389
4390        if (i0)
(gdb) p debug_rtx (i1dest)
(reg:SI 94 [ D.1784 ])
$74 = void
(gdb) p debug_rtx (i1src)
(eq:QI (reg:CCZ 17 flags)
    (const_int 0 [0]))
>From gcc-bugs-return-490089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 24 16:34:01 2015
Return-Path: <gcc-bugs-return-490089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45075 invoked by alias); 24 Jun 2015 16:34:01 -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 44984 invoked by uid 48); 24 Jun 2015 16:33:56 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
Date: Wed, 24 Jun 2015 16:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66412-4-8BDTT9P6FB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg02421.txt.bz2
Content-length: 299

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

--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #5)
> I bet the bug is in whatever creates the mode mismatch.

I don't think so. Combiner somehow mixes up i1src, please see Comment #6.
>From gcc-bugs-return-490090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 24 16:53:02 2015
Return-Path: <gcc-bugs-return-490090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88956 invoked by alias); 24 Jun 2015 16:53:01 -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 88929 invoked by uid 48); 24 Jun 2015 16:52:58 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66652] New: try_transform_to_exit_first_loop_alt generates incorrect loop
Date: Wed, 24 Jun 2015 16:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-66652-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: 2015-06/txt/msg02422.txt.bz2
Content-length: 1246

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

            Bug ID: 66652
           Summary: try_transform_to_exit_first_loop_alt generates
                    incorrect loop
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

This testcase fails on trunk:
...
$ cat libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c
/* { dg-do run } */
/* { dg-options "-O2 -ftree-parallelize-loops=2" } */

#include <stdio.h>
#include <stdlib.h>
#include <limits.h>

unsigned int
__attribute__((noclone,noinline))
f (unsigned int n, unsigned int sum)
{
  unsigned int i;

  i = UINT_MAX;
  do
    {
      sum += i % 13;
      i++;
    }
  while (i < n - 1);

  return sum;
}

int
main (void)
{
  unsigned int actual = f (0, 12);
  unsigned int expected = 4294967290;

  if (actual != expected)
    abort ();

  return 0;
}
...

try_transform_to_exit_first_loop_alt changes the loop into this, and the loop
is never entered:
...
  i = UINT_MAX;
  while (i < n)
    {
      sum += i % 13;
      i++;
    }
...


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
                   ` (5 preceding siblings ...)
  2015-06-24 16:31 ` ubizjak at gmail dot com
@ 2015-06-24 19:44 ` segher at gcc dot gnu.org
  2015-06-26  7:45 ` uros at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: segher at gcc dot gnu.org @ 2015-06-24 19:44 UTC (permalink / raw)
  To: gcc-bugs

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |segher at gcc dot gnu.org

--- Comment #8 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Okay, looking.


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
                   ` (6 preceding siblings ...)
  2015-06-24 19:44 ` segher at gcc dot gnu.org
@ 2015-06-26  7:45 ` uros at gcc dot gnu.org
  2015-06-27  9:17 ` uros at gcc dot gnu.org
  2015-06-27  9:19 ` [Bug target/66412] " ubizjak at gmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: uros at gcc dot gnu.org @ 2015-06-26  7:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from uros at gcc dot gnu.org ---
Author: uros
Date: Fri Jun 26 07:45:07 2015
New Revision: 224994

URL: https://gcc.gnu.org/viewcvs?rev=224994&root=gcc&view=rev
Log:
        PR target/66412
        * config/i386/i386.md (various splitters): Use shallow_copy_rtx
        before doing PUT_MODE or PUT_CODE on operands to avoid
        in-place RTX modification.

testsuite/ChangeLog:

        PR target/66412
        * gcc.target/i386/pr66412.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr66412.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.md
    trunk/gcc/testsuite/ChangeLog


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

* [Bug rtl-optimization/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
                   ` (7 preceding siblings ...)
  2015-06-26  7:45 ` uros at gcc dot gnu.org
@ 2015-06-27  9:17 ` uros at gcc dot gnu.org
  2015-06-27  9:19 ` [Bug target/66412] " ubizjak at gmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: uros at gcc dot gnu.org @ 2015-06-27  9:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Jun 27 09:16:42 2015
New Revision: 225096

URL: https://gcc.gnu.org/viewcvs?rev=225096&root=gcc&view=rev
Log:
        PR target/66412
        * config/i386/i386.md (various splitters): Use shallow_copy_rtx
        before doing PUT_MODE or PUT_CODE on operands to avoid
        in-place RTX modification.

testsuite/ChangeLog:

        PR target/66412
        * gcc.target/i386/pr66412.c: New test.


Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr66412.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/i386/i386.md
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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

* [Bug target/66412] [5/6 Regression] ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748
  2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
                   ` (8 preceding siblings ...)
  2015-06-27  9:17 ` uros at gcc dot gnu.org
@ 2015-06-27  9:19 ` ubizjak at gmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: ubizjak at gmail dot com @ 2015-06-27  9:19 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86
             Status|NEW                         |RESOLVED
          Component|rtl-optimization            |target
         Resolution|---                         |FIXED
   Target Milestone|5.2                         |4.9.4

--- Comment #12 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed everywhere.
>From gcc-bugs-return-490894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 27 09:28:00 2015
Return-Path: <gcc-bugs-return-490894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95148 invoked by alias); 27 Jun 2015 09:27:59 -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 95082 invoked by uid 55); 27 Jun 2015 09:27:56 -0000
From: "miyuki at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/66667] FAIL: g++.dg/diagnostic/inhibit-warn-2.C
Date: Sat, 27 Jun 2015 09:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 5.1.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: miyuki at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: miyuki at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66667-4-G5ggRxHcuZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66667-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66667-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: 2015-06/txt/msg03226.txt.bz2
Content-length: 542

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

--- Comment #2 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
Author: miyuki
Date: Sat Jun 27 09:27:23 2015
New Revision: 225097

URL: https://gcc.gnu.org/viewcvs?rev"5097&root=gcc&view=rev
Log:
PR testsuite/66667

gcc/testsuite/
        * g++.dg/diagnostic/inhibit-warn-2.C: Fix test directives to match
        diagnostic messages of GCC 5.x.

Modified:
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/g++.dg/diagnostic/inhibit-warn-2.C


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

end of thread, other threads:[~2015-06-27  9:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-04  4:50 [Bug rtl-optimization/66412] New: ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748 su at cs dot ucdavis.edu
2015-06-22 12:05 ` [Bug rtl-optimization/66412] [5/6 Regression] " rguenth at gcc dot gnu.org
2015-06-23  8:35 ` ubizjak at gmail dot com
2015-06-24 16:13 ` ubizjak at gmail dot com
2015-06-24 16:17 ` ubizjak at gmail dot com
2015-06-24 16:27 ` jakub at gcc dot gnu.org
2015-06-24 16:31 ` ubizjak at gmail dot com
2015-06-24 19:44 ` segher at gcc dot gnu.org
2015-06-26  7:45 ` uros at gcc dot gnu.org
2015-06-27  9:17 ` uros at gcc dot gnu.org
2015-06-27  9:19 ` [Bug target/66412] " ubizjak at gmail dot com

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