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
+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.
+
2019-03-21 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/89017
layout_moduleinfo_field (make_array_type (Type::tchar, namelen),
type, offset);
- finish_aggregate_type (offset, 1, type, NULL);
+ size_t alignsize = MAX (TYPE_ALIGN_UNIT (type),
+ TYPE_ALIGN_UNIT (ptr_type_node));
+ finish_aggregate_type (offset, alignsize, type, NULL);
return type;
}