Message ID | 20130913030720.GC22902@bubble.grove.modra.org |
---|---|
State | New |
Headers | show |
On Fri, Sep 13, 2013 at 12:37:20PM +0930, Alan Modra wrote: > 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. Ping?
On Tue, Sep 24, 2013 at 12:43 PM, Alan Modra <amodra@gmail.com> wrote: > On Fri, Sep 13, 2013 at 12:37:20PM +0930, Alan Modra wrote: >> 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. > > Ping? Ok. Thanks, Richard. > -- > Alan Modra > Australia Development Lab, IBM
Index: gcc/stmt.c =================================================================== --- gcc/stmt.c (revision 202428) +++ gcc/stmt.c (working copy) @@ -806,7 +806,10 @@ expand_asm_operands (tree string, tree outputs, tr || ! 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);