re PR tree-optimization/78436 (incorrect write to larger-than-type bitfield (signed...
authorJakub Jelinek <jakub@redhat.com>
Tue, 22 Nov 2016 10:15:43 +0000 (11:15 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 22 Nov 2016 10:15:43 +0000 (11:15 +0100)
commit46a6139530ab547eae73dbc1f5489169a2d71a49
treeced1470ba834088553d129562f2fc7a61a247cbb
parent76a7314dc936394490f2207c45ed76ab248b3da0
re PR tree-optimization/78436 (incorrect write to larger-than-type bitfield (signed char x:9))

PR tree-optimization/78436
* gimple-ssa-store-merging.c (zero_char_buf): Removed.
(shift_bytes_in_array, shift_bytes_in_array_right,
merged_store_group::apply_stores): Formatting fixes.
(clear_bit_region): Likewise.  Use memset.
(encode_tree_to_bitpos): Formatting fixes.  Fix comment typos - EPXR
instead of EXPR and inerted instead of inserted.  Use memset instead
of zero_char_buf.  For !BYTES_BIG_ENDIAN decrease byte_size by 1
if shift_amnt is 0.

* gcc.c-torture/execute/pr78436.c: New test.

From-SVN: r242691
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr78436.c [new file with mode: 0644]