Fix wrong alignment returned by .alignof property.
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 17 Nov 2018 11:01:00 +0000 (11:01 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sat, 17 Nov 2018 11:01:00 +0000 (11:01 +0000)
commitd7815fc4509e0caf04c4b43de89b20ac57504307
tree6238646e5b35ec5f3c92eb2b116ecec4b45877b3
parent95c0a21042ec73315ccd6f216f07b4361b02b7e9
Fix wrong alignment returned by .alignof property.

The D language expects the value to be the minimum alignment required
for the type, not the preferred alignment.

gcc/d/ChangeLog:

2018-11-17  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/87824
* d-target.cc (Target::alignsize): Return min_align_of_type.

From-SVN: r266234
gcc/d/ChangeLog
gcc/d/d-target.cc