<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>179649</bug_id>
          
          <creation_ts>2007-05-24 14:56 0000</creation_ts>
          <short_desc>games-fps/quake3-1.34_rc3 fails on gcc-4.2</short_desc>
          <delta_ts>2007-07-18 09:51:26 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GCC Porting</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>162167</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>sefi@s-e-f-i.de</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>esigra@gmail.com</cc>
    
    <cc>tenebrarum@gmail.com</cc>
    
    <cc>xake@rymdraket.net</cc>

      

      
          <long_desc isprivate="0">
            <who>sefi@s-e-f-i.de</who>
            <bug_when>2007-05-24 14:56:32 0000</bug_when>
            <thetext>The file code/tools/asm/cmdlib.c contains two expressions that always evaluate to true because it compares an array against true (which actually converts the array into a pointer to the first element) which must not be zero. Because -Werror is set and gcc-4.2 has stricter warnings the build fails.
I will attach a small patch to fix it.

Reproducible: Always

Steps to Reproduce:
1. switch to gcc-4.2
2. emerge quake3</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sefi@s-e-f-i.de</who>
            <bug_when>2007-05-24 14:57:11 0000</bug_when>
            <thetext>Created an attachment (id=120194)
Patch to fix the bug.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nyhm@gentoo.org</who>
            <bug_when>2007-06-08 13:20:28 0000</bug_when>
            <thetext>I think it should be changed to do what was intended instead of removing it entirely.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-06-20 01:32:11 0000</bug_when>
            <thetext>I completely agree.  Also, upstream is very responsive with regards to bugs such as this, so any patches we apply will very likely be accepted upstream easily.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-06-22 02:06:41 0000</bug_when>
            <thetext>i&apos;d just say drop the -Werror from the build ... that only causes trouble

also, upstream has already accepted a bug fix from nyhm for this which ive added</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>120194</attachid>
            <date>2007-05-24 14:57 0000</date>
            <desc>Patch to fix the bug.</desc>
            <filename>quake3-gcc-4.2.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTnVycCBpb3F1YWtlM18xLjM0LXJjMy9jb2RlL3Rvb2xzL2FzbS9jbWRsaWIuYyBpb3F1
YWtlM18xLjM0LXJjMy5uZXcvY29kZS90b29scy9hc20vY21kbGliLmMKLS0tIGlvcXVha2UzXzEu
MzQtcmMzL2NvZGUvdG9vbHMvYXNtL2NtZGxpYi5jCTIwMDYtMTEtMjggMjM6MDU6MzIuMDAwMDAw
MDAwICswMTAwCisrKyBpb3F1YWtlM18xLjM0LXJjMy5uZXcvY29kZS90b29scy9hc20vY21kbGli
LmMJMjAwNy0wNS0yNCAxNjo0NTowNi4wMDAwMDAwMDAgKzAyMDAKQEAgLTMxMiw4ICszMTIsNiBA
QCBjaGFyICpFeHBhbmRBcmcgKGNvbnN0IGNoYXIgKnBhdGgpCiBjaGFyICpFeHBhbmRQYXRoIChj
b25zdCBjaGFyICpwYXRoKQogewogCXN0YXRpYyBjaGFyIGZ1bGxbMTAyNF07Ci0JaWYgKCFxZGly
KQotCQlFcnJvciAoIkV4cGFuZFBhdGggY2FsbGVkIHdpdGhvdXQgcWRpciBzZXQiKTsKIAlpZiAo
cGF0aFswXSA9PSAnLycgfHwgcGF0aFswXSA9PSAnXFwnIHx8IHBhdGhbMV0gPT0gJzonKSB7CiAJ
CXN0cmNweSggZnVsbCwgcGF0aCApOwogCQlyZXR1cm4gZnVsbDsKQEAgLTMyNSw4ICszMjMsNiBA
QCBjaGFyICpFeHBhbmRQYXRoIChjb25zdCBjaGFyICpwYXRoKQogY2hhciAqRXhwYW5kR2FtZVBh
dGggKGNvbnN0IGNoYXIgKnBhdGgpCiB7CiAJc3RhdGljIGNoYXIgZnVsbFsxMDI0XTsKLQlpZiAo
IXFkaXIpCi0JCUVycm9yICgiRXhwYW5kR2FtZVBhdGggY2FsbGVkIHdpdGhvdXQgcWRpciBzZXQi
KTsKIAlpZiAocGF0aFswXSA9PSAnLycgfHwgcGF0aFswXSA9PSAnXFwnIHx8IHBhdGhbMV0gPT0g
JzonKSB7CiAJCXN0cmNweSggZnVsbCwgcGF0aCApOwogCQlyZXR1cm4gZnVsbDsK
</data>        

          </attachment>
    </bug>

</bugzilla>