[Issue 9870] New: Instruction scheduling error
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Apr  3 13:43:26 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9870
           Summary: Instruction scheduling error
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at digitalmars.com
--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-04-03 13:43:25 PDT ---
The following code from the test suite sdtor.d:
-------------------
struct S20 {
    static char[] r;
}
void main() {
    assert(S20.r == "");
}
-------------------
Fails on 32 bit linux when compiled with -O. The problem is the XOR EAX,EAX
gets scheduled before another instruction that sets the flags. The problem
exists on all dmd targets.
-- 
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