summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-15 12:49:10 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-15 12:49:10 +0000
commitf707ca7d6540d182cc9676280ce54ebb0c72c41b (patch)
tree31fa9fe379a5571beefb379e9444f6243360c695 /gcc
parent5fbee89dd6b86ae3be1c36fc6e0c361d0c85e9de (diff)
downloadgcc-f707ca7d6540d182cc9676280ce54ebb0c72c41b.tar.gz
PR target/24969
* i386.c (classify_argument): Properly adjust offset of bitfield for substructures. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108573 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e6a02e1cde1..288eafef534 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 74572188fdd..bfcfb61b380 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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] =