Bug 9870 – Instruction scheduling error

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-03T13:43:00Z
Last change time
2015-06-09T05:11:58Z
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2013-04-03T13:43:25Z
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.