Commit 409fed48 by Kaz Kojima

re PR target/49305 (SH Target: internal compiler error: in…

re PR target/49305 (SH Target:  internal compiler error: in reload_cse_simplify_operands, at postreload.c:403)

	PR target/49305
	* config/sh/predicates.md (general_movsrc_operand): Check
	mode for memory with indexed address for QI and HImode.
	(general_movdst_operand): Likewise.

From-SVN: r174824
parent 87c16a45
2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/49305
* config/sh/predicates.md (general_movsrc_operand): Check
mode for memory with indexed address for QI and HImode.
(general_movdst_operand): Likewise.
2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com> 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
* doc/objc.texi (Traditional GNU Objective-C runtime API): * doc/objc.texi (Traditional GNU Objective-C runtime API):
......
...@@ -395,6 +395,7 @@ ...@@ -395,6 +395,7 @@
} }
if ((mode == QImode || mode == HImode) if ((mode == QImode || mode == HImode)
&& mode == GET_MODE (op)
&& (MEM_P (op) && (MEM_P (op)
|| (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op))))) || (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op)))))
{ {
...@@ -432,6 +433,7 @@ ...@@ -432,6 +433,7 @@
return 0; return 0;
if ((mode == QImode || mode == HImode) if ((mode == QImode || mode == HImode)
&& mode == GET_MODE (op)
&& (MEM_P (op) && (MEM_P (op)
|| (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op))))) || (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op)))))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment