[Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943
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.
[Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943
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.c2014-06-17 21:21:32.043445314 +0900 +++ trunk/gcc/config/sh/sh.c2014-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;
[Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61550 --- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Wed Jun 18 22:11:55 2014 New Revision: 211807 URL: https://gcc.gnu.org/viewcvs?rev=211807root=gccview=rev Log: PR target/61550 * config/sh/sh.c (prepare_move_operands): Don't process TLS addresses here if reload in progress or completed. Modified: trunk/gcc/ChangeLog trunk/gcc/config/sh/sh.c