Patch for RTL expand bug affecting aarch64 vector code.
authorJim Wilson <jim.wilson@linaro.org>
Sat, 13 May 2017 01:32:40 +0000 (01:32 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Sat, 13 May 2017 01:32:40 +0000 (18:32 -0700)
commitf96bf49a02464e07526289799c14c1333a71a02b
tree255e553b1d2aa340ebdd900f20d69044173c367d
parent7f390a7b6ce8491fb89c9f4f393b161c8075823a
Patch for RTL expand bug affecting aarch64 vector code.

gcc/
PR middle-end/79794
     * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
maybe_expand_insn call, set ops[0].target.  If still set after call,
set alt_rtl.  Add extra arg to recursive calls.
(extract_bit_field): Add alt_rtl argument.  Pass to
extract_bit_field.
* expmed.h (extract_bit_field): Fix prototype.
* expr.c (emit_group_load_1, copy_blkmode_from_reg)
(copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
to extract_bit_field_calls.
(expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
Pass alt_rtl to extract_bit_field calls.
* calls.c (store_unaligned_arguments_into_psuedos)
load_register_parameters): Pass extra NULL to extract_bit_field calls.
* optabs.c (maybe_legitimize_operand): Clear op->target when call
gen_reg_rtx.
* optabs.h (struct expand_operand): Add target bitfield.

From-SVN: r248004
gcc/ChangeLog
gcc/calls.c
gcc/expmed.c
gcc/expmed.h
gcc/expr.c
gcc/optabs.c
gcc/optabs.h