Commit 9286af97 by Jan Hubicka Committed by Jan Hubicka

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
parent c543ca49
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] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment