www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7388] New: Inline assembler shouldn't assume operand size

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7388

           Summary: Inline assembler shouldn't assume operand size
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: All
            Status: NEW
          Keywords: iasm
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com



06:07:52 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 28 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7388


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 2617 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 29 2012