[Nasm-bugs] [Bug 3392383] New: building with watcom is broken

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Wed Feb 1 02:49:06 PST 2017


https://bugzilla.nasm.us/show_bug.cgi?id=3392383

            Bug ID: 3392383
           Summary: building with watcom is broken
           Product: NASM
           Version: 2.12.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: sezeroz at gmail.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us

Created attachment 411574
  --> https://bugzilla.nasm.us/attachment.cgi?id=411574&action=edit
ow build fix for 2.12.x

Nasm doesn't compile with OpenWatcom for some time, because Watcom
doesn't support 64-bit integers as switch values.  See:
https://github.com/open-watcom/open-watcom-v2/issues/66

Here are the errors generated:
assemble.c(2161): Error! E1078: Invalid type for switch expression
assemble.c(2162): Error! W106: Constant out of range - truncated
parser.c(224): Error! E1078: Invalid type for switch expression
parser.c(1033): Warning! W124: Comparison result always 1
parser.c(1035): Warning! W124: Comparison result always 1
parser.c(1046): Error! E1078: Invalid type for switch expression

And a warning:
./output/outobj.c(1142): Warning! W124: Comparison result always 0

I do have a patch to workaround this by changing the switches into
if..else constructs (attached for reference, also cures the above-
mentioned warning), but I don't know how acceptable that is for you.

Regards.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list