diff --git a/ChangeLog b/ChangeLog index 846e839..6e1c4cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-05 Michele Tartara + + * jit/jit-type.c (perform_layout): let struct alignment be greater + than alignment of every indvidual field. + 2009-03-28 Aleksey Demakov * jit/jit-rules.h (jit_reg_name, jit_reg_flags, jit_reg_code); add diff --git a/jit/jit-type.c b/jit/jit-type.c index c82ac93..7c5fb80 100644 --- a/jit/jit-type.c +++ b/jit/jit-type.c @@ -416,7 +416,10 @@ static void perform_layout(jit_type_t type) { type->size = maxSize; } - type->alignment = maxAlign; + if(maxAlign > type->alignment) + { + type->alignment = maxAlign; + } } /*@