]> git.ipfire.org Git - thirdparty/gcc.git/commit
expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 3 Apr 2012 17:59:07 +0000 (17:59 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 3 Apr 2012 17:59:07 +0000 (17:59 +0000)
commit1d0bafd9b0e507476c84a95d5d0f5d82ff7100f3
tree23af0d377d06c888ad90b84e9d2dfa2d2421835c
parentf4ea81123d3ff9daf97046a95b3a31a185501084
expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.

* expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
Change type of BITOFFSET to signed.  Make sure the lower bound of
the computed range is non-negative by adjusting OFFSET and BITPOS.
(expand_assignment): Adjust call to get_bit_range.

From-SVN: r186110
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/pack18.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/pack18_pkg.ads [new file with mode: 0644]