public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
@ 2014-05-10 15:14 danglin at gcc dot gnu.org
  2014-05-11 21:24 ` [Bug middle-end/61141] " danglin at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-05-10 15:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61141

            Bug ID: 61141
           Summary: [4.10 Regression] c-common.c:1502:1: ICE: in
                    reset_insn_used_flags, at emit-rtl.c:2677
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

Created attachment 32774
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32774&action=edit
Preprocessed source

/home/dave/gnu/gcc/objdir/./prev-gcc/xg++
-B/home/dave/gnu/gcc/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-4.10/hppa-linux-gnu/bin/ -nostdinc++
-B/home/dave
/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-B/home/dave/gnu/gcc/
objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs 
-I/home/dave/gnu/gcc/ob
jdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu 
-I/home/dave/gnu/g
cc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include 
-I/home/dave/gnu/gcc/gcc/lib
stdc++-v3/libsupc++
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3
/src/.libs
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc+
+/.libs -c  -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -O2
-DIN_GC
C    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-narrow
ing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual 
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-f
no-common  -DHAVE_CONFIG_H -I. -Ic-family -I../../gcc/gcc
-I../../gcc/gcc/c-fami
ly -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I../../gcc/gcc
/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../g
cc/gcc/../libbacktrace -DCLOOG_INT_GMP    -o c-family/c-common.o -MT
c-family/c-
common.o -MMD -MP -MF c-family/.deps/c-common.TPo
../../gcc/gcc/c-family/c-commo
n.c
../../gcc/gcc/c-family/c-common.c: In function ‘tree_node*
c_fully_fold_internal
(tree, bool, bool*, bool*)’:
../../gcc/gcc/c-family/c-common.c:1502:1: internal compiler error: in
reset_insn
_used_flags, at emit-rtl.c:2677
 }
 ^
0x9df16f reset_insn_used_flags
        ../../gcc/gcc/emit-rtl.c:2677
0x9df30b reset_all_used_flags
        ../../gcc/gcc/emit-rtl.c:2701
0x9df4b7 verify_rtl_sharing()
        ../../gcc/gcc/emit-rtl.c:2728
0xec8e07 execute_function_todo
        ../../gcc/gcc/passes.c:1794
0xec773f do_per_function
        ../../gcc/gcc/passes.c:1504
0xec9023 execute_todo
        ../../gcc/gcc/passes.c:1834
>From gcc-bugs-return-451219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 10 15:23:15 2014
Return-Path: <gcc-bugs-return-451219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17885 invoked by alias); 10 May 2014 15:23:15 -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 17849 invoked by uid 48); 10 May 2014 15:23:11 -0000
From: "mikael at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/61138] [4.8/4.9/4.10 Regression] Wrong code with pointer-bounds remapping
Date: Sat, 10 May 2014 15:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikael at gcc dot gnu.org
X-Bugzilla-Status: NEW
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-61138-4-rTzcw8E0On@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61138-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61138-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-05/txt/msg00911.txt.bz2
Content-length: 562

http://gcc.gnu.org/bugzilla/show_bug.cgi?ida138

Mikael Morin <mikael at gcc dot gnu.org> changed:

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

--- Comment #2 from Mikael Morin <mikael at gcc dot gnu.org> ---
gfc_trans_pointer_assignment sets lse.descriptor_only before calling
gfc_conv_expr_descriptor (for the lhs),  and later on reuses lse for other
things, without clearing descriptor_only.


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
@ 2014-05-11 21:24 ` danglin at gcc dot gnu.org
  2014-05-12 11:22 ` danglin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-05-11 21:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61141

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
On hppa64-hp-hpux11.11, a similar error occurs.  It is easier to debug:

Breakpoint 1, reset_insn_used_flags (insn=0x800003fffdcb8630)
    at ../../gcc/gcc/emit-rtl.c:2677
2677      gcc_assert (INSN_P (insn));
(gdb) p debug_rtx(insn)
(note:TI 238 239 302 NOTE_INSN_DELETED)

In libgcc2.c.245r.dwarf2, we have:

(insn 325 220 304 (sequence [
            (call_insn:TI 236 220 86 (parallel [
                        (set (reg:TF 28 %r28)
                            (call (mem:SI (symbol_ref/v:DI ("@_U_Qfmpy") [flags
0x41]) [0  S4 A32])
                                (const_int 64 [0x40])))
                        (clobber (reg:DI 1 %r1))
                        (clobber (reg:DI 2 %r2))
                        (use (reg:DI 27 %r27))
                        (use (reg/f:DI 29 %r29 [orig:28+8 ] [28]))
                        (use (const_int 0 [0]))
                    ]) ../../../gcc/libgcc/libgcc2.c:1848 262
{*call_val_symref_64bit_post_reload}
                 (expr_list:REG_DEAD (reg:DI 27 %r27)
                    (expr_list:REG_DEAD (reg:DI 26 %r26)
                        (expr_list:REG_DEAD (reg:DI 25 %r25)
                            (expr_list:REG_DEAD (reg:DI 24 %r24)
                                (expr_list:REG_DEAD (reg:DI 23 %r23)
                                    (nil))))))
                (expr_list (use (reg:DI 23 %r23))
                    (expr_list (use (reg:DI 24 %r24))
                        (expr_list (use (reg:DI 25 %r25))
                            (expr_list (use (reg:DI 26 %r26))
                                (nil))))))
            (insn:TI 86 236 304 (set (reg:DI 24 %r24)
                    (reg:DI 6 %r6 [orig:122 x ] [122])) 121 {*pa.md:4180}
                 (nil))
        ]) ../../../gcc/libgcc/libgcc2.c:1848 -1
     (nil))
(note 304 325 278 (nil) NOTE_INSN_CALL_ARG_LOCATION)
(insn:TI 278 304 305 (set (reg:SI 5 %r5 [102])
        (lshiftrt:SI (reg:SI 3 %r3 [orig:68 n ] [68])
            (const_int 1 [0x1]))) ../../../gcc/libgcc/libgcc2.c:1844 237
{lshrsi3}
     (expr_list:REG_DEAD (reg:SI 3 %r3 [orig:68 n ] [68])
        (nil)))
(note 305 278 237 (var_location n (nil)) NOTE_INSN_VAR_LOCATION)
(insn 237 305 101 (set (reg:DI 27 %r27)
        (reg:DI 4 %r4)) ../../../gcc/libgcc/libgcc2.c:1848 121 {*pa.md:4180}
     (expr_list:REG_DEAD (reg:DI 4 %r4)
        (nil)))

In libgcc2.c.246r.final, all that is output is:

deleting insn with uid = 238.
deleting insn with uid = 86.
deleting insn with uid = 147.

Deleting insn 238 would seem to be OK as it's the last restore of the PIC
register in the function.


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
  2014-05-11 21:24 ` [Bug middle-end/61141] " danglin at gcc dot gnu.org
@ 2014-05-12 11:22 ` danglin at gcc dot gnu.org
  2014-05-12 11:24 ` danglin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-05-12 11:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61141

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
In the Linux case, we also have a note in a NOTE_INSN_DELETED delayed
branch sequence:

(gdb) ignor 1 9396470
Will ignore next 9396470 crossings of breakpoint 1.
(gdb) r
Starting program: /home/dave/gnu/gcc/objdir/gcc/../prev-gcc/cc1plus
-fpreprocessed c-common.ii -quiet -dumpbase c-common.c -auxbase-strip
c-family/c-common.o -g -O2 -Wextra -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wsuggest-attribute=format -Woverloaded-virtual -Wpedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -version
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -fno-common -o
c-common.s
GNU C++ (GCC) version 4.10.0 20140509 (experimental) [trunk revision 210292]
(hppa-linux-gnu)
    compiled by GNU C version 4.9.0, GMP version 6.0.0, MPFR version 3.1.2-p3,
MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.10.0 20140509 (experimental) [trunk revision 210292]
(hppa-linux-gnu)
    compiled by GNU C version 4.9.0, GMP version 6.0.0, MPFR version 3.1.2-p3,
MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 58ab86f8e667281199dd64bcf3941150

Breakpoint 1, reset_insn_used_flags (insn=0xf7abc190)
    at ../../gcc/gcc/emit-rtl.c:2677
2677      gcc_assert (INSN_P (insn));
(gdb) p debug_rtx(insn)
(note 5678 5679 5680 NOTE_INSN_DELETED)

(gdb) p debug_rtx_list (insn, -7)
(insn:TI 5677 5676 12940 (set (reg:SI 25 %r25)
        (reg/v/f:SI 6 %r6 [orig:914 expr ] [914])) ../../gcc/gcc/tree.h:3183 40
{*pa.md:2211}
     (expr_list:REG_DEAD (reg/v/f:SI 6 %r6 [orig:914 expr ] [914])
        (nil)))

(note 12940 5677 25145 (var_location in_init (entry_value:QI (reg:QI 25 %r25 [
in_init ]))) NOTE_INSN_VAR_LOCATION)

(insn 25145 12940 5680 (sequence [
            (call_insn:TI 5679 12940 5678 (parallel [
                        (call (mem:SI (symbol_ref/v:SI
("@_Z25tree_operand_check_failediPK9tree_nodePKciS3_") [flags 0x241]
<function_decl 0xfa55a500 tree_operand_check_failed>) [0
tree_operand_check_failed S4 A32])
                            (const_int 24 [0x18]))
                        (clobber (reg:SI 1 %r1))
                        (clobber (reg:SI 2 %r2))
                        (use (const_int 0 [0]))
                    ]) ../../gcc/gcc/tree.h:3183 195 {call_symref}
                 (expr_list:REG_DEAD (reg:SI 26 %r26)
                    (expr_list:REG_DEAD (reg:SI 25 %r25)
                        (expr_list:REG_DEAD (reg:SI 24 %r24)
                            (expr_list:REG_DEAD (reg:SI 23 %r23)
                                (expr_list:REG_NORETURN (const_int 0 [0])
                                    (nil))))))
                (expr_list:SI (use (reg:SI 26 %r26))
                    (expr_list:SI (use (reg:SI 25 %r25))
                        (expr_list:SI (use (reg:SI 24 %r24))
                            (expr_list:SI (use (reg:SI 23 %r23))
                                (expr_list:SI (use (mem/f:SI (plus:SI (reg/f:SI
30 %r30)
                                                (const_int -52
[0xffffffffffffffcc])) [0  S4 A32]))
                                    (nil)))))))
            (note 5678 5679 5680 NOTE_INSN_DELETED)
        ]) ../../gcc/gcc/tree.h:3183 -1
     (nil))

(barrier 5680 25145 12943)

(note 12943 5680 12942 (expr_list:REG_DEP_TRUE (concat:SI (reg:SI 26 %r26)
        (const_int 1 [0x1]))
    (expr_list:REG_DEP_TRUE (concat:SI (reg:SI 25 %r25)
            (reg/v/f:SI 6 %r6 [orig:914 expr ] [914]))
        (expr_list:REG_DEP_TRUE (concat:SI (reg:SI 24 %r24)
                (symbol_ref/v/f:SI ("*.LC0") [flags 0x202] <var_decl 0xf845cd80
*.LC0>))
            (expr_list:REG_DEP_TRUE (concat:SI (reg:SI 23 %r23)
                    (const_int 1205 [0x4b5]))
                (expr_list:REG_DEP_TRUE (concat:SI (mem/f:SI (plus:SI (reg/f:SI
30 %r30)
                                (const_int -52 [0xffffffffffffffcc])) [0  S4
A32])
                        (symbol_ref/v:SI
("_ZZL21c_fully_fold_internalP9tree_nodebPbS1_E12__FUNCTION__") [flags 0x202]
<var_decl 0xfa3ea0c0 __FUNCTION__>))
                    (nil)))))) NOTE_INSN_CALL_ARG_LOCATION)

(note/c 12942 12943 12941 (var_location kind (nil)) NOTE_INSN_VAR_LOCATION)

(note/c 12941 12942 12944 (var_location __c (nil)) NOTE_INSN_VAR_LOCATION)

$3 = void


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
  2014-05-11 21:24 ` [Bug middle-end/61141] " danglin at gcc dot gnu.org
  2014-05-12 11:22 ` danglin at gcc dot gnu.org
@ 2014-05-12 11:24 ` danglin at gcc dot gnu.org
  2014-05-12 11:29 ` danglin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-05-12 11:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61141

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
(gdb) p *pass
$4 = {<pass_data> = {type = RTL_PASS, name = 0x1afa7c0 "final", 
    optinfo_flags = 0, has_execute = true, tv_id = TV_FINAL, 
    properties_required = 0, properties_provided = 0, 
    properties_destroyed = 0, todo_flags_start = 524288, 
    todo_flags_finish = 0}, 
  _vptr.opt_pass = 0x1afa758 <vtable for (anonymous namespace)::pass_final+8>, 
  sub = 0x0, next = 0x0, static_pass_number = 251, 
  graph_dump_initialized = false, m_ctxt = 0x1ed64f8}


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-05-12 11:24 ` danglin at gcc dot gnu.org
@ 2014-05-12 11:29 ` danglin at gcc dot gnu.org
  2014-05-13 11:07 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-05-12 11:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61141

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> ---
(gdb) p *fn
$5 = {eh = 0xfa483f48, cfg = 0xf7f60a10, gimple_body = 0x0, 
  gimple_df = 0xf7ba6900, x_current_loops = 0x0, su = 0x0, 
  value_histograms = 0x0, decl = 0xf8f39100, static_chain_decl = 0x0, 
  nonlocal_goto_save_area = 0x0, local_decls = 0x0, cilk_frame_decl = 0x0, 
  machine = 0xfabd95f8, language = 0xf93de900, used_types_hash = 0xfaba0180, 
  fde = 0xf8b9ad38, last_stmt_uid = 3927, funcdef_no = 719, 
  function_start_locus = 6286828, function_end_locus = 6403815, 
  curr_properties = 5312, last_verified = 0, cannot_be_copied_reason = 0x0, 
  va_list_gpr_size = 255, va_list_fpr_size = 255, calls_setjmp = 0, 
  calls_alloca = 0, is_cilk_function = 0, calls_cilk_spawn = 0, 
  has_nonlocal_label = 0, cannot_be_copied_set = 1, stdarg = 0, 
  after_inlining = 1, always_inline_functions_inlined = 1, 
  can_throw_non_call_exceptions = 0, can_delete_dead_exceptions = 0, 
  returns_struct = 0, returns_pcc_struct = 0, has_local_explicit_reg_vars = 0, 
  is_thunk = 0, has_force_vectorize_loops = 0, has_simduid_loops = 0, 
  tail_call_marked = 0}
(gdb) p debug_tree (fn->decl)
 <function_decl 0xf8f39100 c_fully_fold_internal
    type <function_type 0xf8f3b600
        type <pointer_type 0xf9be9960 tree type <union_type 0xf9be98a0
tree_node>
            sizes-gimplified asm_written public unsigned type_6 SI
            size <integer_cst 0xfad01570 constant 32>
            unit size <integer_cst 0xfad01588 constant 4>
            align 32 symtab -104946992 alias set -1 canonical type 0xf9be9900
            pointer_to_this <pointer_type 0xfa4f62a0>>
        SI size <integer_cst 0xfad01570 32> unit size <integer_cst 0xfad01588
4>
        align 32 symtab 0 alias set -1 canonical type 0xf8f3b660
        arg-types <tree_list 0xf8f38bb8 value <pointer_type 0xf9be9960 tree>
            chain <tree_list 0xf8f38bd0 value <boolean_type 0xfad0a5a0 bool>
                chain <tree_list 0xf8f38be8 value <pointer_type 0xfaad38a0>
                    chain <tree_list 0xf8f38c00 value <pointer_type 0xfaad38a0>
                        chain <tree_list 0xfad01db0 value <void_type 0xfad0a8a0
void>>>>>>
        pointer_to_this <pointer_type 0xfa40cc00>>
    addressable asm_written used nothrow static decl_5 decl_6 SI file
../../gcc/gcc/c-family/c-common.c line 1113 col 1 align 32 context
<translation_unit_decl 0xfad09070 D.1> initial <error_mark 0xfad063b0>
    arguments <parm_decl 0xf91fb5f0 expr type <pointer_type 0xf9be9960 tree>
        used visited unsigned SI file ../../gcc/gcc/c-family/c-common.c line
1113 col 29 size <integer_cst 0xfad01570 32> unit size <integer_cst 0xfad01588
4>
        align 32 context <function_decl 0xf8f39100 c_fully_fold_internal>

        (reg/v/f:SI 6 %r6 [orig:914 expr ] [914]) arg-type <pointer_type
0xf9be9960 tree>
        incoming-rtl (reg:SI 26 %r26 [ expr ])
        chain <parm_decl 0xf91fb6e0 in_init type <boolean_type 0xfad0a5a0 bool>
            used visited unsigned QI file ../../gcc/gcc/c-family/c-common.c
line 1113 col 40
            size <integer_cst 0xfad016a8 constant 8>
            unit size <integer_cst 0xfad016c0 constant 1>
            align 8 context <function_decl 0xf8f39100 c_fully_fold_internal>

            (reg/v:SI 9 %r9 [orig:915 in_init+-3 ] [915]) arg-type
<integer_type 0xfad0a360 int>
            incoming-rtl (reg:SI 25 %r25 [ in_init+-3 ]) chain <parm_decl
0xf91fb7d0 maybe_const_operands>>>
    result <result_decl 0xf91fb870 D.36357 type <pointer_type 0xf9be9960 tree>
        unsigned ignored regdecl SI file ../../gcc/gcc/c-family/c-common.c line
1114 col 34 size <integer_cst 0xfad01570 32> unit size <integer_cst 0xfad01588
4>
        align 32 context <function_decl 0xf8f39100 c_fully_fold_internal>
        (reg/f:SI 913 [ <retval> ])>
    full-name "tree_node* c_fully_fold_internal(tree, bool, bool*, bool*)"
    pending-inline-info 0xf93dea68
    (mem:SI (symbol_ref/v:SI ("@_ZL21c_fully_fold_internalP9tree_nodebPbS1_")
[flags 0x203] <function_decl 0xf8f39100 c_fully_fold_internal>) [0  S4 A32])
    struct-function 0xfa576478 chain <var_decl 0xf8f3b3c0 fname_vars>>
$8 = void


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-05-12 11:29 ` danglin at gcc dot gnu.org
@ 2014-05-13 11:07 ` rguenth at gcc dot gnu.org
  2014-05-24 18:14 ` danglin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-13 11:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.10.0


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-05-13 11:07 ` rguenth at gcc dot gnu.org
@ 2014-05-24 18:14 ` danglin at gcc dot gnu.org
  2014-05-25 16:52 ` danglin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-05-24 18:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> ---
I added a gcc_assert in pa_output_call to detect branch sequences with
a deleted insn.  I didn't trigger.

The reason the submitted patch works is the RTL "cleanup" that deletes
insns in delay slots is being run after assembly output has been generated.
See backtrace:

Breakpoint 2, reset_all_used_flags () at ../../gcc/gcc/emit-rtl.c:2723
2723            if (INSN_P (insn))
(gdb) bt   
#0  reset_all_used_flags () at ../../gcc/gcc/emit-rtl.c:2723
#1  0x4000000000771df0 in verify_rtl_sharing ()
    at ../../gcc/gcc/emit-rtl.c:2752
#2  0x4000000000bc3b58 in execute_function_todo (fn=0x800003fffdca2d20, 
    data=0x40) at ../../gcc/gcc/passes.c:1794
#3  0x4000000000bc2090 in do_per_function (callback=0x4000000000357710, 
    data=0x40) at ../../gcc/gcc/passes.c:1504
#4  0x4000000000bc3e0c in execute_todo (flags=64)
    at ../../gcc/gcc/passes.c:1834
#5  0x4000000000bc55d8 in execute_one_pass (pass=0x800000010037b7b8)
    at ../../gcc/gcc/passes.c:2194
#6  0x4000000000bc55d8 in execute_one_pass (pass=0x800000010037b7b8)
    at ../../gcc/gcc/passes.c:2194
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) p debug_rtx (insn)
(note:TI 238 239 302 NOTE_INSN_DELETED)


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2014-05-24 18:14 ` danglin at gcc dot gnu.org
@ 2014-05-25 16:52 ` danglin at gcc dot gnu.org
  2014-06-09 16:41 ` law at gcc dot gnu.org
  2014-06-09 16:44 ` law at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-05-25 16:52 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

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

--- Comment #7 from John David Anglin <danglin at gcc dot gnu.org> ---
On hppa64-hp-hpux11.11, this bug was introduced by the following change:

2014-05-05  Richard Biener  <rguenther@suse.de>

        * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
        from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
        under the TODO_verify_il umbrella.


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2014-05-25 16:52 ` danglin at gcc dot gnu.org
@ 2014-06-09 16:41 ` law at gcc dot gnu.org
  2014-06-09 16:44 ` law at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: law at gcc dot gnu.org @ 2014-06-09 16:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Mon Jun  9 16:41:10 2014
New Revision: 211380

URL: http://gcc.gnu.org/viewcvs?rev=211380&root=gcc&view=rev
Log:
2014-05-18  John David Anglin  <danglin@gcc.gnu.org>

    PR middle-end/61141
    * emit-rtl.c (reset_all_used_flags): In a sequence, check that
    XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
    (verify_rtl_sharing): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/emit-rtl.c


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

* [Bug middle-end/61141] [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677
  2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2014-06-09 16:41 ` law at gcc dot gnu.org
@ 2014-06-09 16:44 ` law at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: law at redhat dot com @ 2014-06-09 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #9 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.


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

end of thread, other threads:[~2014-06-09 16:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-10 15:14 [Bug middle-end/61141] New: [4.10 Regression] c-common.c:1502:1: ICE: in reset_insn_used_flags, at emit-rtl.c:2677 danglin at gcc dot gnu.org
2014-05-11 21:24 ` [Bug middle-end/61141] " danglin at gcc dot gnu.org
2014-05-12 11:22 ` danglin at gcc dot gnu.org
2014-05-12 11:24 ` danglin at gcc dot gnu.org
2014-05-12 11:29 ` danglin at gcc dot gnu.org
2014-05-13 11:07 ` rguenth at gcc dot gnu.org
2014-05-24 18:14 ` danglin at gcc dot gnu.org
2014-05-25 16:52 ` danglin at gcc dot gnu.org
2014-06-09 16:41 ` law at gcc dot gnu.org
2014-06-09 16:44 ` law at redhat 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).