[Issue 5591] EBX register not preserved when calling stdcall function pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 15 09:25:39 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5591



--- Comment #1 from hypothermia.frost at gmail.com 2011-02-15 09:23:06 PST ---
After doing some more tests I found out that if you compile with -O switch, the
code behaves as expected and output is:
 foo (EBX = 1,2)
EBX(after foo) = 1
 foo (EBX = 3,4)
EBX(after bar) = 3
...

Looks like it's a bug in DMD code gen without the -O switch.

-- 
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