D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1847 - Structs aren't aligned on stack
Summary: Structs aren't aligned on stack
Status: RESOLVED DUPLICATE of issue 2278
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-17 12:32 UTC by Witold Baryluk
Modified: 2014-02-24 15:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Witold Baryluk 2008-02-17 12:32:58 UTC
This is quite important bug, because SSE on x86 needs data alligned to 16 bytes bonduary. Using opcodes for not alligned data is very slow, and sometimes isn't even posible.

Implementation can be quite tricky. gcc team created special branch for automatic stack alligment: http://gcc.gnu.org/ml/gcc/2008-01/msg00282.html . similar idea can be used in dmd for proper aligment.

This bug report is for tracking purpose.
Comment 1 Matti Niemenmaa 2008-02-17 12:58:45 UTC
1.027 isn't out yet. And this is an enhancement request, not a bug.
Comment 2 Don 2010-01-15 04:51:12 UTC

*** This issue has been marked as a duplicate of issue 2278 ***