[Nasm-bugs] [Bug 3392372] "insnsa.c", line 8: warning: initializer will be sign-extended: -1

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Tue Nov 15 13:25:15 PST 2016


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

--- Comment #2 from H. Peter Anvin <hpa at zytor.com> ---
We don't require that char is unsigned (in fact, virtually all platforms we
compile for on a regular basis have a signed char), but we *do* assume signed
chars are 2s-complement and wrap.  Recent gcc versions require the -fwrap
option to not make invalid optimizations under certain circumstances; it would
be useful to find a similar option for Solaris CC; perhaps you can help?

The bigger problem seems to be that in your setup, nasmlib.o requires ilog2.o,
not sure why that would be any different from gcc, but there it is...

In the meantime, could you try the attached patch?

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