aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2008-03-23 13:07:34 +0100
committerUros Bizjak <uros@gcc.gnu.org>2008-03-23 13:07:34 +0100
commit808e68bbc8deda237cfeb2264816fb0c27500fe0 (patch)
treee2ba9c107e4221b111a7e826953cf4e0f49ccab2 /gcc/stor-layout.c
parent47056774217f18dee4804250e5ec5b1e140fcc73 (diff)
downloadgcc-808e68bbc8deda237cfeb2264816fb0c27500fe0.zip
gcc-808e68bbc8deda237cfeb2264816fb0c27500fe0.tar.gz
gcc-808e68bbc8deda237cfeb2264816fb0c27500fe0.tar.bz2
Revert:
2008-03-05 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386-modes.def: Use 4 byte alignment on DI for 32bit host. 2008-03-19 Uros Bizjak <ubizjak@gmail.com> PR target/35496 * stor-layout.c (update_alignment_for_field): Set minimum alignment of the underlying type of a MS bitfield layout to the natural alignment of the type. 2008-03-22 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386.c (assign_386_stack_local): Align DImode slots to their natural alignment to avoid store forwarding stalls. From-SVN: r133461
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index ff46687..67e4c25f 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -699,9 +699,6 @@ update_alignment_for_field (record_layout_info rli, tree field,
&& ! integer_zerop (DECL_SIZE (rli->prev_field)))))
{
unsigned int type_align = TYPE_ALIGN (type);
- unsigned int type_size
- = tree_low_cst (TYPE_SIZE (type), 1);
- type_align = MAX (type_align, type_size);
type_align = MAX (type_align, desired_align);
if (maximum_field_alignment != 0)
type_align = MIN (type_align, maximum_field_alignment);