[Issue 24861] New: Vestige of 16 bit code being accidentally generated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 15 00:10:38 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24861

          Issue ID: 24861
           Summary: Vestige of 16 bit code being accidentally generated
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com

Line 4667 of cod2.d is:

 if (pretregs & (mES | mCX) || e.Ety & mTYfar)

but that branch should only be taken for 16 bit code. The code generated is
benign, but it shouldn't be generated. The fix is:

 if (I16 && pretregs & (mES | mCX) || e.Ety & mTYfar)

--


More information about the Digitalmars-d-bugs mailing list