[Bug tree-optimization/78436] [7 Regression] incorrect write to larger-than-type bitfield (signed char x:9)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 22 10:19:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78436

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Nov 22 10:15:43 2016
New Revision: 242691

URL: https://gcc.gnu.org/viewcvs?rev=242691&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr78436.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-store-merging.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list