d: Fix run-time SIGSEGV reading ModuleInfo.flags()
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 31 Mar 2019 14:34:41 +0000 (14:34 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sun, 31 Mar 2019 14:34:41 +0000 (14:34 +0000)
commit1605fb3ed04c6958c292deec72e120f787e4843d
tree4c2a01b87b27baf9d93570abcd11a47ec78a3266
parent16216c7fbef2ee35e673a7cfef47bc075f791e0c
d: Fix run-time SIGSEGV reading ModuleInfo.flags()

The current forced alignment is not necessary, and is problematic on
targets that have strict alignment rules.

gcc/d/ChangeLog:

2019-03-31  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/88462
* modules.cc (layout_moduleinfo_fields): Properly align ModuleInfo,
instead of forcing alignment to be 1.

From-SVN: r270043
gcc/d/ChangeLog
gcc/d/modules.cc