[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 17:44:02 EDT 2016


https://bugzilla.icculus.org/show_bug.cgi?id=6429

--- Comment #10 from Thilo Schulz <arny at ats.s.bawue.de> ---
No I cannot. It compiles just as well with -fPIC.

cc  -DDEDICATED -fPIC -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 -DUSE_VOIP -DNDEBUG -O3 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c

cc  -DDEDICATED -fPIE -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 -DUSE_VOIP -DNDEBUG -O3 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c

all works for me, so do -fpic and -fpie.

Curiously, in that last comment of yours you don't seem to have any -fPIC or
-fpic or -fPIE flag. Is this enabled per default in your hardened version of
GCC?

Also, does gcc >= 5.0 -fPIC compile standard ioquake3 (that ioquake3 without my
newest changes) without errors?

-- 
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/af6d250e/attachment.html>


More information about the quake3-bugzilla mailing list