re PR target/24969 (tmpdir-gcc.dg-struct-layout-1/t026 fails execution)
PR target/24969 * i386.c (classify_argument): Properly adjust offset of bitfield for substructures. From-SVN: r108573
This commit is contained in:
parent
c543ca49c2
commit
9286af9721
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-12-15 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
PR target/24969
|
||||
* i386.c (classify_argument): Properly adjust offset of bitfield for
|
||||
substructures.
|
||||
|
||||
2005-12-15 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
* final.c (final_scan_insn): Flip in_cold_section_p when changing
|
||||
|
|
|
@ -2659,8 +2659,8 @@ classify_argument (enum machine_mode mode, tree type,
|
|||
misaligned integers. */
|
||||
if (DECL_BIT_FIELD (field))
|
||||
{
|
||||
for (i = int_bit_position (field) / 8 / 8;
|
||||
i < (int_bit_position (field)
|
||||
for (i = (int_bit_position (field) + (bit_offset % 64)) / 8 / 8;
|
||||
i < ((int_bit_position (field) + (bit_offset % 64))
|
||||
+ tree_low_cst (DECL_SIZE (field), 0)
|
||||
+ 63) / 8 / 8; i++)
|
||||
classes[i] =
|
||||
|
|
Loading…
Add table
Reference in a new issue