[Issue 9144] New: synchronized CRITSECSIZE should be a target constant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 11 15:27:56 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9144
Summary: synchronized CRITSECSIZE should be a target constant
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-12-11 15:27:50 PST ---
In statement.c the compiler defines CRITSECSIZE to be the size of a critical
section. This is done using the HOST system headers and sizeof. During cross
compilation this may lead to memory corruptions when the size of a critical
section is smaller on the host system than it is on the target.
This is already the case for Linux 32/64 (32 vs. 40 byte).
I found this bug by tracking down a memory corruption using a mipsel-linux-gdc
cross compiler.
--
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