public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59243] New: [SH] Build fails during compiling libjava/interpret.cc with segfault
@ 2013-11-22 2:54 kkojima at gcc dot gnu.org
2013-11-22 13:13 ` [Bug target/59243] " olegendo at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: kkojima at gcc dot gnu.org @ 2013-11-22 2:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59243
Bug ID: 59243
Summary: [SH] Build fails during compiling libjava/interpret.cc
with segfault
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: kkojima at gcc dot gnu.org
CC: olegendo at gcc dot gnu.org
Target: sh*-*-*
Created attachment 31270
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31270&action=edit
A reduced test case
Build fails for sh4-unknown-linux-gnu during compiling libjava/interpret.cc
with segfault. It looks sh_optimize_sett_clrt::find_last_ccreg_values
falls into infinite recursion. Here is a gdb backtrace for the attached
reduced testcase with -O1:
Program received signal SIGSEGV, Segmentation fault.
reg_overlap_mentioned_p (x=0xb7c8bd50, in=0xb7d74270)
at ../../ORIG/trunk/gcc/rtlanal.c:1427
1427 return refers_to_regno_p (regno, endregno, in, (rtx*) 0);
Missing separate debuginfos, use: debuginfo-install glibc-2.14.1-6.i686
(gdb) bt
#0 reg_overlap_mentioned_p (x=0xb7c8bd50, in=0xb7d74270)
at ../../ORIG/trunk/gcc/rtlanal.c:1427
#1 0x087a6d6d in set_of_1 (x=0xb7d74270, pat=0xb7bf242c, data1=0xbc000058)
at ../../ORIG/trunk/gcc/rtlanal.c:1001
#2 0x087a389e in set_of (pat=0xb7c8bd50, insn=0xb7f63460)
at ../../ORIG/trunk/gcc/rtlanal.c:1013
#3 0x087a3e04 in reg_set_p (reg=0xb7c8bd50, insn=0xb7f63460)
at ../../ORIG/trunk/gcc/rtlanal.c:871
#4 0x08aca612 in sh_optimize_sett_clrt::find_last_ccreg_values (
this=0x90b0718, start_insn=0xb7f63460, bb=0xb7f5aa40, values_out=...,
prev_visited_bb=0xb7f5aa80)
at ../../ORIG/trunk/gcc/config/sh/sh_optimize_sett_clrt.cc:323
#5 0x08aca91b in sh_optimize_sett_clrt::find_last_ccreg_values (
this=0x90b0718, start_insn=0xb7add140, bb=0xb7f5aa80, values_out=...,
prev_visited_bb=0xb7b33f40)
at ../../ORIG/trunk/gcc/config/sh/sh_optimize_sett_clrt.cc:383
#6 0x08aca91b in sh_optimize_sett_clrt::find_last_ccreg_values (
this=0x90b0718, start_insn=0xb7b36050, bb=0xb7b33f40, values_out=...,
prev_visited_bb=0xb7e2cf00)
at ../../ORIG/trunk/gcc/config/sh/sh_optimize_sett_clrt.cc:383
#7 0x08aca91b in sh_optimize_sett_clrt::find_last_ccreg_values (
this=0x90b0718, start_insn=0xb7bc1f9c, bb=0xb7e2cf00, values_out=...,
prev_visited_bb=0xb7b33f40)
at ../../ORIG/trunk/gcc/config/sh/sh_optimize_sett_clrt.cc:383
#8 0x08aca91b in sh_optimize_sett_clrt::find_last_ccreg_values (
this=0x90b0718, start_insn=0xb7b36050, bb=0xb7b33f40, values_out=...,
prev_visited_bb=0xb7e2cf00)
at ../../ORIG/trunk/gcc/config/sh/sh_optimize_sett_clrt.cc:383
#9 0x08aca91b in sh_optimize_sett_clrt::find_last_ccreg_values (
this=0x90b0718, start_insn=0xb7bc1f9c, bb=0xb7e2cf00, values_out=...,
prev_visited_bb=0xb7b33f40)
at ../../ORIG/trunk/gcc/config/sh/sh_optimize_sett_clrt.cc:383
#10 0x08aca91b in sh_optimize_sett_clrt::find_last_ccreg_values (
this=0x90b0718, start_insn=0xb7b36050, bb=0xb7b33f40, values_out=...,
prev_visited_bb=0xb7e2cf00)
at ../../ORIG/trunk/gcc/config/sh/sh_optimize_sett_clrt.cc:383
frame 6, 8 and 10 are equivalent.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59243] [SH] Build fails during compiling libjava/interpret.cc with segfault
2013-11-22 2:54 [Bug target/59243] New: [SH] Build fails during compiling libjava/interpret.cc with segfault kkojima at gcc dot gnu.org
@ 2013-11-22 13:13 ` olegendo at gcc dot gnu.org
2013-11-22 15:46 ` olegendo at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-11-22 13:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59243
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-11-22
Assignee|unassigned at gcc dot gnu.org |olegendo at gcc dot gnu.org
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59243] [SH] Build fails during compiling libjava/interpret.cc with segfault
2013-11-22 2:54 [Bug target/59243] New: [SH] Build fails during compiling libjava/interpret.cc with segfault kkojima at gcc dot gnu.org
2013-11-22 13:13 ` [Bug target/59243] " olegendo at gcc dot gnu.org
@ 2013-11-22 15:46 ` olegendo at gcc dot gnu.org
2013-11-23 8:33 ` kkojima at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-11-22 15:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59243
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Created attachment 31274
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31274&action=edit
Infinite recursion fix
The attached patch should fix the infinite recursion problem. The test case
compiles for me with -m4-single -O1 and -O2.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59243] [SH] Build fails during compiling libjava/interpret.cc with segfault
2013-11-22 2:54 [Bug target/59243] New: [SH] Build fails during compiling libjava/interpret.cc with segfault kkojima at gcc dot gnu.org
2013-11-22 13:13 ` [Bug target/59243] " olegendo at gcc dot gnu.org
2013-11-22 15:46 ` olegendo at gcc dot gnu.org
@ 2013-11-23 8:33 ` kkojima at gcc dot gnu.org
2013-11-25 16:47 ` olegendo at gcc dot gnu.org
2013-11-25 16:51 ` olegendo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: kkojima at gcc dot gnu.org @ 2013-11-23 8:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59243
--- Comment #3 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
(In reply to Oleg Endo from comment #2)
> Created attachment 31274 [details]
> Infinite recursion fix
It fixes the build failure on sh4-unknown-linux-gnu too. The patch
is pre-approved.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59243] [SH] Build fails during compiling libjava/interpret.cc with segfault
2013-11-22 2:54 [Bug target/59243] New: [SH] Build fails during compiling libjava/interpret.cc with segfault kkojima at gcc dot gnu.org
` (2 preceding siblings ...)
2013-11-23 8:33 ` kkojima at gcc dot gnu.org
@ 2013-11-25 16:47 ` olegendo at gcc dot gnu.org
2013-11-25 16:51 ` olegendo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-11-25 16:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59243
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Author: olegendo
Date: Mon Nov 25 16:47:16 2013
New Revision: 205358
URL: http://gcc.gnu.org/viewcvs?rev=205358&root=gcc&view=rev
Log:
PR target/53976
PR target/59243
* config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
comments.
(sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
previously visited basic blocks before recursing instead of only one
basic block.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/sh_optimize_sett_clrt.cc
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59243] [SH] Build fails during compiling libjava/interpret.cc with segfault
2013-11-22 2:54 [Bug target/59243] New: [SH] Build fails during compiling libjava/interpret.cc with segfault kkojima at gcc dot gnu.org
` (3 preceding siblings ...)
2013-11-25 16:47 ` olegendo at gcc dot gnu.org
@ 2013-11-25 16:51 ` olegendo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-11-25 16:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59243
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-11-25 16:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-22 2:54 [Bug target/59243] New: [SH] Build fails during compiling libjava/interpret.cc with segfault kkojima at gcc dot gnu.org
2013-11-22 13:13 ` [Bug target/59243] " olegendo at gcc dot gnu.org
2013-11-22 15:46 ` olegendo at gcc dot gnu.org
2013-11-23 8:33 ` kkojima at gcc dot gnu.org
2013-11-25 16:47 ` olegendo at gcc dot gnu.org
2013-11-25 16:51 ` olegendo 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).