public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/61550] New: [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943
@ 2014-06-18 11:23 kkojima at gcc dot gnu.org
  2014-06-18 11:25 ` [Bug target/61550] " kkojima at gcc dot gnu.org
  2014-06-20  1:59 ` kkojima at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-06-18 11:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61550
           Summary: [4.10 Regression] [SH] build failure with ICE in
                    gen_reg_rtx, at emit-rtl.c:943
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kkojima at gcc dot gnu.org
            Target: sh*-*-*

Created attachment 32966
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32966&action=edit
A reduced test case

The trunk fails to build on sh4-unknown-linux-gnu with an ICE
during compiling libgomp.  A reduced case attached fails with:

gomp.c: In function 'gomp_thread_start':
gomp.c:59:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:943
 }
 ^
0x8332ab1 gen_reg_rtx(machine_mode)
        ../../ORIG/trunk/gcc/emit-rtl.c:943
0x8343ad2 force_reg
        ../../ORIG/trunk/gcc/explow.c:659
0x890f5fe prepare_move_operands(rtx_def**, machine_mode)
        ../../ORIG/trunk/gcc/config/sh/sh.c:1832
0x896fb3d gen_movsi(rtx_def*, rtx_def*)
        ../../ORIG/trunk/gcc/config/sh/sh.md:6878
0x8367a60 insn_gen_fn::operator()(rtx_def*, rtx_def*) const
        ../../ORIG/trunk/gcc/recog.h:308
0x8367a60 emit_move_insn_1(rtx_def*, rtx_def*)
        ../../ORIG/trunk/gcc/expr.c:3521
0x8556a9c gen_move_insn(rtx_def*, rtx_def*)
        ../../ORIG/trunk/gcc/optabs.c:4874
0x85bc683 gen_reload
        ../../ORIG/trunk/gcc/reload1.c:8797


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

* [Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943
  2014-06-18 11:23 [Bug target/61550] New: [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943 kkojima at gcc dot gnu.org
@ 2014-06-18 11:25 ` kkojima at gcc dot gnu.org
  2014-06-20  1:59 ` kkojima at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-06-18 11:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
sh.c:prepare_move_operands has the code for TLS addresses which
shouldn't be run when reload in progress in the first place.
I'm testing the patch below.

--- ORIG/trunk/gcc/config/sh/sh.c    2014-06-17 21:21:32.043445314 +0900
+++ trunk/gcc/config/sh/sh.c    2014-06-18 08:26:27.846157153 +0900
@@ -1758,7 +1758,8 @@ prepare_move_operands (rtx operands[], e
       else
     opc = NULL_RTX;

-      if ((tls_kind = tls_symbolic_operand (op1, Pmode)) != TLS_MODEL_NONE)
+      if (! reload_in_progress && ! reload_completed
+      && (tls_kind = tls_symbolic_operand (op1, Pmode)) != TLS_MODEL_NONE)
     {
       rtx tga_op1, tga_ret, tmp, tmp2;


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

* [Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943
  2014-06-18 11:23 [Bug target/61550] New: [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943 kkojima at gcc dot gnu.org
  2014-06-18 11:25 ` [Bug target/61550] " kkojima at gcc dot gnu.org
@ 2014-06-20  1:59 ` kkojima at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-06-20  1:59 UTC (permalink / raw)
  To: gcc-bugs

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

Kazumoto Kojima <kkojima at gcc dot gnu.org> changed:

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

--- Comment #3 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-06-20  1:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18 11:23 [Bug target/61550] New: [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943 kkojima at gcc dot gnu.org
2014-06-18 11:25 ` [Bug target/61550] " kkojima at gcc dot gnu.org
2014-06-20  1:59 ` kkojima 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).