d: Respect explicit align(N) type alignment (PR100935)
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 9 Jun 2021 17:37:22 +0000 (19:37 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 9 Jun 2021 17:41:30 +0000 (19:41 +0200)
commit04fea2d66bd680beb1a204e62f2f459307000813
tree4aa3b45f43efc1405f47815b5a4994a453be5aa7
parentc8d581bdf731714977b1592e74d05e000535e338
d: Respect explicit align(N) type alignment (PR100935)

It was previously the natural type alignment, defined as the maximum of
the field alignments for an aggregate.  Make sure an explicit align(N)
overrides it.

Reviewed-on: https://github.com/dlang/dmd/pull/12646

gcc/d/ChangeLog:

PR d/100935
* dmd/MERGE: Merge upstream dmd f3fdeb578.
gcc/d/dmd/MERGE
gcc/d/dmd/mtype.c
gcc/testsuite/gdc.test/compilable/aggr_alignment.d