[Bug tree-optimization/79737] [7 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu (in both 32-bit and 64-bit modes)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 28 22:39:00 GMT 2017


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 28 22:39:11 2017
New Revision: 245795

URL: https://gcc.gnu.org/viewcvs?rev=245795&root=gcc&view=rev
Log:
        PR tree-optimization/79737
        * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
        a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
        tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
        instead of byte_size.  Formatting fix.
        (shift_bytes_in_array_right): Formatting fix.

        * gcc.c-torture/execute/pr79737-1.c: New test.
        * gcc.c-torture/execute/pr79737-2.c: New test.

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


More information about the Gcc-bugs mailing list