]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/22156 (bit-field copying regressed)
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 9 Oct 2007 04:45:22 +0000 (04:45 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 9 Oct 2007 04:45:22 +0000 (04:45 +0000)
commit088371ac5bd0beaf476ecb9b722ff9e3700aef34
tree97e7e8a78a54d634b2fb0a9669d27385ed6c0209
parentb6a04d96c3da192febb727f309d89adcdbc95ee2
re PR middle-end/22156 (bit-field copying regressed)

PR middle-end/22156
* tree-sra.c (instantiate_element): Use BYTES_BIG_ENDIAN for
bit-field layout.
(sra_build_assignment): Likewise.  Set up mask depending on
precision, not type.
(sra_build_bf_assignment): Use BYTES_BIG_ENDIAN.  Don't overflow
computing bit masks.
(sra_build_elt_assignment): Don't view-convert from signed to
unsigned.
(sra_explode_bitfield_assignment): Use bit-field type if
possible.  Use BYTES_BIG_ENDIAN.

From-SVN: r129150
gcc/ChangeLog
gcc/tree-sra.c