OSDN Git Service

PR middle-end/22156
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2007 04:45:22 +0000 (04:45 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2007 04:45:22 +0000 (04:45 +0000)
commit04048c9915033f46e7e418a4a96a471a30e478a1
tree97e7e8a78a54d634b2fb0a9669d27385ed6c0209
parent21e5ba979105f4469fb4bcfe43a373df976427f8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129150 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-sra.c