public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/59763] New: ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args
@ 2014-01-10 18:53 ubizjak at gmail dot com
2014-01-10 19:09 ` [Bug target/59763] " hjl.tools at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2014-01-10 18:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59763
Bug ID: 59763
Summary: ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550
with -mno-accumulate-outgoing-args
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: ubizjak at gmail dot com
Following testcase:
--cut here--
extern void abort(void);
register long *B asm ("ebp");
int main()
{
abort();
return 0;
}
--cut here--
ICEs with -mno-accumulate-outgoing-args on 32bit and 64bit x86 targets, when
preferred stack boundary is larger than the word size (2 for 32bit and 4 for
64bit targets) Please note that default stack boundary is set to 4 by default,
so the ICE triggers even without -mpreferred-stack-boundary option.
-m32 -mno-accumulate-outgoing-args
t.c: In function ‘main’:
t.c:9:1: internal compiler error: in dwarf2out_frame_debug_expr, at
dwarf2cfi.c:1550
}
^
0x6c5cd3 dwarf2out_frame_debug_expr
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:1548
0x6c6133 dwarf2out_frame_debug
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2043
0x6c6133 scan_insn_after
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2369
0x6c7fd3 scan_trace
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2526
0x6c8a92 create_cfi_notes
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2565
0x6c8a92 execute_dwarf2_frame
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2925
0x6c8a92 execute
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:3421
Please submit a full bug report,
...
-m64 -mno-accumulate-outgoing-args -mpreferred-stack-boundary=5
t.c: In function ‘main’:
t.c:9:1: internal compiler error: in dwarf2out_frame_debug_expr, at
dwarf2cfi.c:1550
}
^
0x6c5cd3 dwarf2out_frame_debug_expr
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:1548
0x6c6133 dwarf2out_frame_debug
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2043
0x6c6133 scan_insn_after
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2369
0x6c7fd3 scan_trace
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2526
0x6c8a92 create_cfi_notes
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2565
0x6c8a92 execute_dwarf2_frame
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:2925
0x6c8a92 execute
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:3421
Please submit a full bug report,
...
(gdb) up
#2 0x00000000006c5cd4 in dwarf2out_frame_debug_expr
(expr=expr@entry=0x7ffff19c8eb8) at
/home/uros/gcc-svn/trunk/gcc/dwarf2cfi.c:1548
1548 gcc_assert (!fixed_regs [REGNO (dest)]
(gdb) p debug_rtx (dest)
(reg/f:DI 6 bp)
$3 = void
(gdb) p debug_rtx(expr)
(set (reg/f:DI 6 bp)
(reg/f:DI 7 sp))
$4 = void
(gdb) list
1543 cur_trace->cfa_temp.offset = cur_cfa->offset;
1544 }
1545 else
1546 {
1547 /* Saving a register in a register. */
1548 gcc_assert (!fixed_regs [REGNO (dest)]
1549 /* For the SPARC and its register window. */
1550 || (dwf_regno (src) ==
DWARF_FRAME_RETURN_COLUMN));
1551
1552 /* After stack is aligned, we can only save SP in FP
The problem is that compiler emits the frame for main(), even when
-fomit-frame-pointer is active (the default for 64bit and 32bit targets).
(insn/f 16 3 17 2 (set (reg:DI 39 r10)
(plus:DI (reg/f:DI 7 sp)
(const_int 8 [0x8]))) t.c:6 259 {*leadi}
(nil))
(insn/f 17 16 18 2 (parallel [
(set (reg/f:DI 7 sp)
(and:DI (reg/f:DI 7 sp)
(const_int -32 [0xffffffffffffffe0])))
(clobber (reg:CC 17 flags))
]) t.c:6 400 {*anddi_1}
(nil))
(insn/f 18 17 19 2 (set (mem:DI (pre_dec:DI (reg/f:DI 7 sp)) [0 S8 A8])
(mem/c:DI (plus:DI (reg:DI 39 r10)
(const_int -8 [0xfffffffffffffff8])) [0 S8 A8])) t.c:6 65
{*pushdi2_rex64}
(nil))
(insn/f 19 18 20 2 (set (mem:DI (pre_dec:DI (reg/f:DI 7 sp)) [0 S8 A8])
(reg/f:DI 6 bp)) t.c:6 65 {*pushdi2_rex64}
(nil))
(insn/f 20 19 21 2 (set (reg/f:DI 6 bp)
(reg/f:DI 7 sp)) t.c:6 89 {*movdi_internal}
(nil))
(insn/f 21 20 22 2 (set (mem:DI (pre_dec:DI (reg/f:DI 7 sp)) [0 S8 A8])
(reg:DI 39 r10)) t.c:6 65 {*pushdi2_rex64}
(nil))
(insn/f 22 21 23 2 (parallel [
(set (reg/f:DI 7 sp)
(plus:DI (reg/f:DI 7 sp)
(const_int -8 [0xfffffffffffffff8])))
(clobber (reg:CC 17 flags))
(clobber (mem:BLK (scratch) [0 A8]))
]) t.c:6 969 {pro_epilogue_adjust_stack_di_add}
(nil))
The compiler trips on a frame-related (insn/f 20), where fixed reg (bp) is
touched. So, is it really necessary to emit frame-reg setup for main, even with
-fomit-frame-pointer?
This problem is the cause of the gcc.target/i386/pr9771-1.c testsuite failure
[1] when the compiler defaults to -march=corei7.
[1] http://gcc.gnu.org/ml/gcc-testresults/2014-01/msg00720.html
>From gcc-bugs-return-440022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 10 19:06:34 2014
Return-Path: <gcc-bugs-return-440022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8916 invoked by alias); 10 Jan 2014 19:06:34 -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 8867 invoked by uid 48); 10 Jan 2014 19:06:28 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/59763] ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args
Date: Fri, 10 Jan 2014 19:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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:
Message-ID: <bug-59763-4-oJuu7fE58W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59763-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59763-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: 2014-01/txt/msg01164.txt.bz2
Content-length: 442
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59763
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
The compilation with -maccumulate-outgoing-args avoids the ICE, although the
resulting asm code touches %ebp in frame-related insn:
#(insn/f 16 20 21 2 (set (reg/f:SI 6 bp)
# (reg/f:SI 7 sp)) t.c:6 90 {*movsi_internal}
# (nil))
movl %esp, %ebp # 16 *movsi_internal/1 [length = 2]
>From gcc-bugs-return-440023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 10 19:09:14 2014
Return-Path: <gcc-bugs-return-440023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10210 invoked by alias); 10 Jan 2014 19:09: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 10141 invoked by uid 48); 10 Jan 2014 19:09:08 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/59700] [4.8/4.9 Regression] Misleading/buggy runtime error message: Bad integer for item 0 in list input
Date: Fri, 10 Jan 2014 19:09: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.8.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59700-4-IxZ9B2BdI5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59700-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59700-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-01/txt/msg01165.txt.bz2
Content-length: 494
http://gcc.gnu.org/bugzilla/show_bug.cgi?idY700
--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Steve and Dominique,
I think your other patches are in the right direction. For the reading of
logicals we probably should do something different. If we do not want to touch
the dtp structure, I think we just need to save the value of the item_count
just before the call to read_logical and then restore it after.
I will open a separate PR for this issue on logicals.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/59763] ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args
2014-01-10 18:53 [Bug rtl-optimization/59763] New: ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args ubizjak at gmail dot com
@ 2014-01-10 19:09 ` hjl.tools at gmail dot com
2014-01-10 19:11 ` ubizjak at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-10 19:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59763
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Dup
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/59763] ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args
2014-01-10 18:53 [Bug rtl-optimization/59763] New: ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args ubizjak at gmail dot com
2014-01-10 19:09 ` [Bug target/59763] " hjl.tools at gmail dot com
@ 2014-01-10 19:11 ` ubizjak at gmail dot com
2014-01-10 19:12 ` hjl.tools at gmail dot com
2014-01-10 19:12 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2014-01-10 19:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59763
--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to H.J. Lu from comment #2)
> Dup
... of ?
>From gcc-bugs-return-440028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 10 19:12:30 2014
Return-Path: <gcc-bugs-return-440028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16686 invoked by alias); 10 Jan 2014 19:12:29 -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 16428 invoked by uid 48); 10 Jan 2014 19:12:25 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/54694] [4.7/4.8/4.9 Regression] internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2387
Date: Fri, 10 Jan 2014 19:12: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: 4.6.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-54694-4-iyrckrK8Rl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54694-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54694-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-01/txt/msg01170.txt.bz2
Content-length: 430
http://gcc.gnu.org/bugzilla/show_bug.cgi?idT694
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubizjak at gmail dot com
--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> ---
*** Bug 59763 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/59763] ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args
2014-01-10 18:53 [Bug rtl-optimization/59763] New: ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args ubizjak at gmail dot com
` (2 preceding siblings ...)
2014-01-10 19:12 ` hjl.tools at gmail dot com
@ 2014-01-10 19:12 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-10 19:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59763
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
Dup.
*** This bug has been marked as a duplicate of bug 54694 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/59763] ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args
2014-01-10 18:53 [Bug rtl-optimization/59763] New: ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args ubizjak at gmail dot com
2014-01-10 19:09 ` [Bug target/59763] " hjl.tools at gmail dot com
2014-01-10 19:11 ` ubizjak at gmail dot com
@ 2014-01-10 19:12 ` hjl.tools at gmail dot com
2014-01-10 19:12 ` hjl.tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-10 19:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59763
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Last reconfirmed| |2014-01-10
Resolution|FIXED |---
Ever confirmed|0 |1
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Reopened
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-10 19:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-10 18:53 [Bug rtl-optimization/59763] New: ICE in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 with -mno-accumulate-outgoing-args ubizjak at gmail dot com
2014-01-10 19:09 ` [Bug target/59763] " hjl.tools at gmail dot com
2014-01-10 19:11 ` ubizjak at gmail dot com
2014-01-10 19:12 ` hjl.tools at gmail dot com
2014-01-10 19:12 ` hjl.tools 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).