Split off record layouting
commitddecb0e68517dd7ffb6e594561580ad32377dfef
authorMichael Matz <matz@suse.de>
Sun, 2 Oct 2016 19:37:58 +0000 (2 21:37 +0200)
committerMichael Matz <matz@suse.de>
Thu, 15 Dec 2016 16:49:56 +0000 (15 17:49 +0100)
tree9f30944376edc5d5fa29fb5e7ddbfeeefbb5b07e
parent5d6a9e797a3c2d12ed54edb14851f4b023de4799
Split off record layouting

Such struct decl:

  struct S { char a; int i;} __attribute__((packed));

should be accepted and cause S to be five bytes long (i.e.
the packed attribute should matter).  So we can't layout
the members during parsing already.  Split off the offset
and alignment calculation for this.
tccgen.c
tests/tcctest.c