http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58970

--- Comment #29 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Nov 11 07:57:11 2013
New Revision: 204663

URL: http://gcc.gnu.org/viewcvs?rev=204663&root=gcc&view=rev
Log:
    Backported from mainline
    2013-11-06  Jakub Jelinek  <ja...@redhat.com>

    PR middle-end/58970
    * expr.c (get_bit_range): Handle *offset == NULL_TREE.
    (expand_assignment): If *bitpos is negative, set *offset
    and adjust *bitpos, so that it is not negative.

    * gcc.c-torture/compile/pr58970-1.c: New test.
    * gcc.c-torture/compile/pr58970-2.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/compile/pr58970-1.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/compile/pr58970-2.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/expr.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog

Reply via email to