[quake3-bugzilla] [Bug 6429] vm_x86.c inline assembly error on hosts using -fPIC
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Wed Jun 15 16:48:20 EDT 2016
https://bugzilla.icculus.org/show_bug.cgi?id=6429
--- Comment #9 from Mark <mark at noffle.net> ---
I think I see where the problem lies when comparing your compiler string to the
one being generated by my gcc version.
It seems as though it compiles cleanly when optimizations are disabled however
when the release build occurs, -O3 is passed which immediately causes the
error.
My compilation:
cc -DDEDICATED -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -pipe
-DUSE_ICON -DARCH_STRING=\"x86\" -m32 -DNO_GZIP -Icode/zlib -DUSE_INTERNAL_JPEG
-Icode/jpeg-8c -DUSE_LOCAL_HEADERS
-DPRODUCT_VERSION=\"1.36_GIT_3d55e71-2016-06-15\" -Wformat=2
-Wno-format-zero-length -Wformat-security -Wno-format-nonliteral
-Wstrict-aliasing=2 -Wmissing-format-attribute -Wdisabled-optimization
-Werror-implicit-function-declaration -MMD -DNDEBUG -O3 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c
code/qcommon/vm_x86.c: In function 'VM_CallCompiled':
code/qcommon/vm_x86.c:1791:2: error: 'asm' operand has impossible constraints
__asm__ volatile(
^
with no optimizations:
$ cc -DDEDICATED -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
-pipe -DUSE_ICON -DARCH_STRING=\"x86\" -m32 -DNO_GZIP -Icode/zlib
-DUSE_INTERNAL_JPEG -Icode/jpeg-8c -DUSE_LOCAL_HEADERS
-DPRODUCT_VERSION=\"1.36_GIT_3d55e71-2016-06-15\" -Wformat=2
-Wno-format-zero-length -Wformat-security -Wno-format-nonliteral
-Wstrict-aliasing=2 -Wmissing-format-attribute -Wdisabled-optimization
-Werror-implicit-function-declaration -MMD -DNDEBUG -O0 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c
$
Can you try compiling as a Release build and see if you can reproduce?
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/quake3-bugzilla/attachments/20160615/650c2105/attachment-0001.html>
More information about the quake3-bugzilla
mailing list