diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2011-07-27 13:22:09 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2011-07-27 13:22:09 +0000 |
commit | 1169e45d2716d769be78cf38bcea449414e6ce75 (patch) | |
tree | efd1ef13f8faacffa0a54f18314494501d46696b /gcc/ifcvt.c | |
parent | 4f13e17fff3c787928f674a9ba26fd5517fc387d (diff) | |
download | gcc-1169e45d2716d769be78cf38bcea449414e6ce75.zip gcc-1169e45d2716d769be78cf38bcea449414e6ce75.tar.gz gcc-1169e45d2716d769be78cf38bcea449414e6ce75.tar.bz2 |
params.h (ALLOW_STORE_DATA_RACES): New.
* params.h (ALLOW_STORE_DATA_RACES): New.
* params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
* Makefile.in (expr.o): Depend on PARAMS_H.
* machmode.h (get_best_mode): Add argument.
* fold-const.c (optimize_bit_field_compare): Add argument to
get_best_mode.
(fold_truthop): Same.
* ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
* expr.c (emit_group_store): Same.
(copy_blkmode_from_reg): Same.
(write_complex_part): Same.
(optimize_bitfield_assignment_op): Add argument.
Add argument to get_best_mode.
(get_bit_range): New.
(expand_assignment): Calculate maxbits and pass it down
accordingly.
(store_field): New argument.
(expand_expr_real_2): New argument to store_field.
Include params.h.
* expr.h (store_bit_field): New argument.
* stor-layout.c (get_best_mode): Restrict mode expansion by taking
into account maxbits.
* calls.c (store_unaligned_arguments_into_pseudos): New argument
to store_bit_field.
* expmed.c (store_bit_field_1): New argument. Use it.
(store_bit_field): Same.
(store_fixed_bit_field): Same.
(store_split_bit_field): Same.
(extract_bit_field_1): Pass new argument to get_best_mode.
(extract_bit_field): Same.
* stmt.c (store_bit_field): Pass new argument to store_bit_field.
* doc/invoke.texi: Document parameter allow-store-data-races.
From-SVN: r176824
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 239f498..a26df19 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -885,7 +885,7 @@ noce_emit_move_insn (rtx x, rtx y) } gcc_assert (start < (MEM_P (op) ? BITS_PER_UNIT : BITS_PER_WORD)); - store_bit_field (op, size, start, GET_MODE (x), y); + store_bit_field (op, size, start, 0, 0, GET_MODE (x), y); return; } @@ -939,7 +939,8 @@ noce_emit_move_insn (rtx x, rtx y) inner = XEXP (outer, 0); outmode = GET_MODE (outer); bitpos = SUBREG_BYTE (outer) * BITS_PER_UNIT; - store_bit_field (inner, GET_MODE_BITSIZE (outmode), bitpos, outmode, y); + store_bit_field (inner, GET_MODE_BITSIZE (outmode), bitpos, + 0, 0, outmode, y); } /* Return sequence of instructions generated by if conversion. This |