On Fri, Sep 27, 2013 at 11:21:19AM +1000, Jason Hood wrote:
> On 26/09/2013 16:30, Daniel Glöckner wrote:
> > On Thu, Sep 26, 2013 at 03:39:45PM +1000, Jason Hood wrote:
> >> * 4- & 8-byte structs copy as int/long long (all targets);
> >
> > did you check if the structure is aligned to a multiple of 4 bytes?
> > Otherwise it will crash on ARM.
>
> No, as I thought structures of these sizes would already be
> aligned (as if they were int or long long). Is that not
> necessarily the case?
No,
struct {
char x[4];
}
has an alignment of 1 byte.
Daniel
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel