re PR middle-end/57134 (ICE with -mstrict-align and inline assembly on ppc64)

PR middle-end/57134
	PR middle-end/57586
	* stmt.c (expand_asm_operands): Call expand_expr with
	EXPAND_MEMORY for output operands that disallow regs.  Don't
	use EXPAND_WRITE on inout operands.

From-SVN: r202866
This commit is contained in:
Alan Modra 2013-09-24 21:02:28 +09:30 committed by Alan Modra
parent f40333afeb
commit 5a8c2b571c
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2013-09-24 Alan Modra <amodra@gmail.com>
PR middle-end/57134
PR middle-end/57586
* stmt.c (expand_asm_operands): Call expand_expr with
EXPAND_MEMORY for output operands that disallow regs. Don't
use EXPAND_WRITE on inout operands.
2013-09-24 Richard Biener <rguenther@suse.de>
PR middle-end/58513

View File

@ -806,7 +806,10 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
|| ! allows_reg
|| is_inout)
{
op = expand_expr (val, NULL_RTX, VOIDmode, EXPAND_WRITE);
op = expand_expr (val, NULL_RTX, VOIDmode,
!allows_reg ? EXPAND_MEMORY
: !is_inout ? EXPAND_WRITE
: EXPAND_NORMAL);
if (MEM_P (op))
op = validize_mem (op);