Browse Source

let struct alignment be greater than alignment of fields

cache-refactoring
Aleksey Demakov 16 years ago
parent
commit
8d4fdc2f3c
  1. 5
      ChangeLog
  2. 5
      jit/jit-type.c

5
ChangeLog

@ -1,3 +1,8 @@
2009-04-05 Michele Tartara <mikyt@users.sourceforge.net>
* jit/jit-type.c (perform_layout): let struct alignment be greater
than alignment of every indvidual field.
2009-03-28 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-rules.h (jit_reg_name, jit_reg_flags, jit_reg_code); add

5
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;
}
}
/*@

Loading…
Cancel
Save