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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 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: -------

Reply via email to