Message ID | 20160918125118.GC96969@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
On 09/18/2016 02:51 PM, Jan Hubicka wrote: > > to_rtx = expand_expr (tem, NULL_RTX, VOIDmode, EXPAND_WRITE); > - > - /* If the field has a mode, we want to access it in the > - field's mode, not the computed mode. > - If a MEM has VOIDmode (external with incomplete type), > - use BLKmode for it instead. */ > - if (MEM_P (to_rtx)) > - { > - if (mode1 != VOIDmode) > - to_rtx = adjust_address (to_rtx, mode1, 0); > - else if (GET_MODE (to_rtx) == VOIDmode) > - to_rtx = adjust_address (to_rtx, BLKmode, 0); > - } > > if (offset != 0) > { This was added by Jakub in r166603, referencing PR46388. Have you looked at that? Bernd
Index: expr.c =================================================================== --- expr.c (revision 240109) +++ expr.c (working copy) @@ -5010,18 +5010,6 @@ expand_assignment (tree to, tree from, b } to_rtx = expand_expr (tem, NULL_RTX, VOIDmode, EXPAND_WRITE); - - /* If the field has a mode, we want to access it in the - field's mode, not the computed mode. - If a MEM has VOIDmode (external with incomplete type), - use BLKmode for it instead. */ - if (MEM_P (to_rtx)) - { - if (mode1 != VOIDmode) - to_rtx = adjust_address (to_rtx, mode1, 0); - else if (GET_MODE (to_rtx) == VOIDmode) - to_rtx = adjust_address (to_rtx, BLKmode, 0); - } if (offset != 0) {