[Issue 5355] New: Global variables are not aligned
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 17 18:38:28 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5355
Summary: Global variables are not aligned
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: elfy.nv at gmail.com
--- Comment #0 from Nick Voronin <elfy.nv at gmail.com> 2010-12-17 18:36:37 PST ---
"Version D 2.007: Data items in static data segment >= 16 bytes in size are now
paragraph aligned."
Yet this test shows that neither double[4] nor creal are aligned.
import core.stdc.stdio: printf;
int a;
double[4] d;
creal cr;
void main() {
printf("%X:%u %X:%u %X:%u\n", &a, (cast(size_t)&a) % 8, &d,
(cast(size_t)&d) % 8, &cr, (cast(size_t)&cr) % 8);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list