<html>
<head>
<base href="https://bugzilla.icculus.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - vm_x86.c inline assembly error on hosts using -fPIC"
href="https://bugzilla.icculus.org/show_bug.cgi?id=6429#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - vm_x86.c inline assembly error on hosts using -fPIC"
href="https://bugzilla.icculus.org/show_bug.cgi?id=6429">bug 6429</a>
from <span class="vcard"><a class="email" href="mailto:arny@ats.s.bawue.de" title="Thilo Schulz <arny@ats.s.bawue.de>"> <span class="fn">Thilo Schulz</span></a>
</span></b>
<pre>(In reply to Mark from <a href="show_bug.cgi?id=6429#c7">comment #7</a>)
<span class="quote">> Sadly, no go with the most recent push. Same error in impossible constraint
> violation with gcc 4.9.3.</span >
well, it does work for me. This is the compiler invocation:
cc -DDEDICATED -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -pipe
-DUSE_ICON -DARCH_STRING=\"x86_64\" -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 -ggdb -O0 -fPIC -fPIE
-m32 -o build/debug-linux-x86_64/ded/vm_x86.o -c code/qcommon/vm_x86.c
version:
gcc version 4.9.2 (Debian 4.9.2-10)
<span class="quote">> Interesting that the compiler constraint error occurs with gcc 4.9.3 but is
> fine with 6.1.0. a 2016-03 gcc post
> (<a href="https://gcc.gnu.org/ml/gcc-help/2016-03/msg00156.html">https://gcc.gnu.org/ml/gcc-help/2016-03/msg00156.html</a>) suggests that EBX
> was considered reserved on i686 when generating PIC code but was changed to
> no longer be reserved as of gcc 5. I guess it's possible gcc 4 considers all
> usage of ebx in inline assembly, regardless of manually saving and restoring
> ebx, as violating the reservation when -fPIC is enabled?</span >
Like I said in my first response, gcc5 seems to have done away with that
requirement. Does it compile with vanilla ioquake3 (without any of my current
modifications)?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>