Bug 7388 – Inline assembler shouldn't assume operand size

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2012-01-28T06:07:00Z
Last change time
2015-06-09T05:12:00Z
Keywords
iasm
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2012-01-28T06:07:52Z
This assembler instruction compiles fine: inc [EAX]; However, the code makes no indication of the memory size. DMD just assumes "byte ptr". The severity of this is increased by that at least one other inline assembler (Delphi's) makes an incompatible assumption (it assumes "dword ptr"). I suggest that this behavior is made deprecated, and code compiled without -d should be forced to disambiguate operand size.
Comment #1 by yebblies — 2012-01-29T22:04:33Z
*** This issue has been marked as a duplicate of issue 2617 ***