public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/44973]  New: SH: libjava failed to build with 'flow control insn inside a basic block'
@ 2010-07-17 21:28 kkojima at gcc dot gnu dot org
  2010-07-17 22:22 ` [Bug rtl-optimization/44973] " bernds at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2010-07-17 21:28 UTC (permalink / raw)
  To: gcc-bugs

On sh4-unknown-linux-gnu,

r162270 | bernds | 2010-07-17 08:47:46 +0900 (Sat, 17 Jul 2010) | 26 lines

caused a build failure during compiling libjava:

../trunk/libjava/verify.cc: In member function 'void
_Jv_BytecodeVerifier::merge_into(int, _Jv_BytecodeVerifier::state*)':
../trunk/libjava/verify.cc:1527:3: error: in basic block 200:
../trunk/libjava/verify.cc:1527:3: error: flow control insn inside a basic
block
(insn 1318 1315 1309 200 ../trunk/libjava/verify.cc:686 (set (reg:SI 1 r1
[orig:447 D.22193 ] [447])
        (mem/s:SI (plus:SI (reg/v/f:SI 9 r9 [orig:452 from_state ] [452])
                (const_int 24 [0x18])) [45 MEM[(const struct type
&)from_state_22(D) + 16].pc+0 S4 A32])) 176 {movsi_ie} (expr_list:REG_EH_REGION
(const_int 3 [0x3])
        (nil)))
../trunk/libjava/verify.cc:1527:3: internal compiler error: in
rtl_verify_flow_info_1, at cfgrtl.c:2030
P../trunk/libjava/verify.cc: In member function 'void
_Jv_BytecodeVerifier::merge_into(int, _Jv_BytecodeVerifier::state*)':
../trunk/libjava/verify.cc:1527:3: error: in basic block 200:
../trunk/libjava/verify.cc:1527:3: error: flow control insn inside a basic
block
(insn 1318 1315 1309 200 ../trunk/libjava/verify.cc:686 (set (reg:SI 1 r1
[orig:447 D.22193 ] [447])
        (mem/s:SI (plus:SI (reg/v/f:SI 9 r9 [orig:452 from_state ] [452])
                (const_int 24 [0x18])) [45 MEM[(const struct type
&)from_state_22(D) + 16].pc+0 S4 A32])) 176 {movsi_ie} (expr_list:REG_EH_REGION
(const_int 3 [0x3])
        (nil)))
../trunk/libjava/verify.cc:1527:3: internal compiler error: in
rtl_verify_flow_info_1, at cfgrtl.c:2030


It seems that the patch below restores the build on SH, though
I'm not sure if it's the right thing to do.

diff -up ORIG/trunk/gcc/postreload.c trunk/gcc/postreload.c
--- ORIG/trunk/gcc/postreload.c 2010-07-17 10:31:33.000000000 +0900
+++ trunk/gcc/postreload.c      2010-07-17 23:07:42.000000000 +0900
@@ -924,6 +924,9 @@ reload_combine_recognize_const_pattern (
          if (must_move_add && use_ruid < last_jump_ruid)
            break;

+         if (find_reg_note (use_insn, REG_EH_REGION, NULL))
+           break;
+
          /* If the add clobbers another hard reg in parallel, don't move
             it past a real set of this hard reg.  */
          if (must_move_add && clobbered_regno >= 0


-- 
           Summary: SH: libjava failed to build with 'flow control insn
                    inside a basic block'
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima at gcc dot gnu dot org
GCC target triplet: sh4-unknown-linux-gnu


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


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

* [Bug rtl-optimization/44973] SH: libjava failed to build with 'flow control insn inside a basic block'
  2010-07-17 21:28 [Bug rtl-optimization/44973] New: SH: libjava failed to build with 'flow control insn inside a basic block' kkojima at gcc dot gnu dot org
@ 2010-07-17 22:22 ` bernds at gcc dot gnu dot org
  2010-07-17 22:34 ` steven at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bernds at gcc dot gnu dot org @ 2010-07-17 22:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bernds at gcc dot gnu dot org  2010-07-17 22:22 -------
Created an attachment (id=21237)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21237&action=view)
Potential fix

Does this fix it?


-- 

bernds at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bernds at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED


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


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

* [Bug rtl-optimization/44973] SH: libjava failed to build with 'flow control insn inside a basic block'
  2010-07-17 21:28 [Bug rtl-optimization/44973] New: SH: libjava failed to build with 'flow control insn inside a basic block' kkojima at gcc dot gnu dot org
  2010-07-17 22:22 ` [Bug rtl-optimization/44973] " bernds at gcc dot gnu dot org
@ 2010-07-17 22:34 ` steven at gcc dot gnu dot org
  2010-07-18  6:15 ` kkojima at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-07-17 22:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from steven at gcc dot gnu dot org  2010-07-17 22:34 -------
Ideally, the code would look at the CFG instead, like the loop above it, that
uses FOR_EACH_BB_REVERSE. But most of the postreload.c code ignores the CFG,
unfortunately...


-- 


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


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

* [Bug rtl-optimization/44973] SH: libjava failed to build with 'flow control insn inside a basic block'
  2010-07-17 21:28 [Bug rtl-optimization/44973] New: SH: libjava failed to build with 'flow control insn inside a basic block' kkojima at gcc dot gnu dot org
  2010-07-17 22:22 ` [Bug rtl-optimization/44973] " bernds at gcc dot gnu dot org
  2010-07-17 22:34 ` steven at gcc dot gnu dot org
@ 2010-07-18  6:15 ` kkojima at gcc dot gnu dot org
  2010-07-19 11:15 ` ro at gcc dot gnu dot org
  2010-07-19 11:27 ` bernds at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2010-07-18  6:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kkojima at gcc dot gnu dot org  2010-07-18 06:15 -------
(In reply to comment #1)
> Does this fix it?

Yes.  With it, the failure go away and my cross sh-linux
build has just completed successfully.


-- 


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


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

* [Bug rtl-optimization/44973] SH: libjava failed to build with 'flow control insn inside a basic block'
  2010-07-17 21:28 [Bug rtl-optimization/44973] New: SH: libjava failed to build with 'flow control insn inside a basic block' kkojima at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-07-18  6:15 ` kkojima at gcc dot gnu dot org
@ 2010-07-19 11:15 ` ro at gcc dot gnu dot org
  2010-07-19 11:27 ` bernds at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-19 11:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ro at gcc dot gnu dot org  2010-07-19 11:15 -------
libada failed to build with the same error in i386-pc-solaris2.10.  You patch
patch fixed that as well.


-- 

ro at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ro at gcc dot gnu dot org


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


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

* [Bug rtl-optimization/44973] SH: libjava failed to build with 'flow control insn inside a basic block'
  2010-07-17 21:28 [Bug rtl-optimization/44973] New: SH: libjava failed to build with 'flow control insn inside a basic block' kkojima at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-07-19 11:15 ` ro at gcc dot gnu dot org
@ 2010-07-19 11:27 ` bernds at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bernds at gcc dot gnu dot org @ 2010-07-19 11:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bernds at gcc dot gnu dot org  2010-07-19 11:27 -------
Fixed now.


-- 

bernds at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-07-19 11:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-17 21:28 [Bug rtl-optimization/44973] New: SH: libjava failed to build with 'flow control insn inside a basic block' kkojima at gcc dot gnu dot org
2010-07-17 22:22 ` [Bug rtl-optimization/44973] " bernds at gcc dot gnu dot org
2010-07-17 22:34 ` steven at gcc dot gnu dot org
2010-07-18  6:15 ` kkojima at gcc dot gnu dot org
2010-07-19 11:15 ` ro at gcc dot gnu dot org
2010-07-19 11:27 ` bernds at gcc dot gnu dot 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).