re PR target/62111 (ICE when building Linux kernel for sh64)

PR target/62111
	* config/sh/predicates.md (general_extend_operand): Disable
	TRUNCATE before reload completes.

From-SVN: r214413
This commit is contained in:
Kaz Kojima 2014-08-25 00:37:51 +00:00
parent b1f180d096
commit 3f0d513197
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/62111
* config/sh/predicates.md (general_extend_operand): Disable
TRUNCATE before reload completes.
2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
* doc/invoke.texi (Optimize Options): Fix markup in two cases.

View File

@ -398,7 +398,7 @@
(define_predicate "general_extend_operand"
(match_code "subreg,reg,mem,truncate")
{
if (GET_CODE (op) == TRUNCATE)
if (reload_completed && GET_CODE (op) == TRUNCATE)
return arith_operand (op, mode);
if (MEM_P (op) || (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op))))