<?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>233739</bug_id>
          
          <creation_ts>2008-08-02 19:40 0000</creation_ts>
          <short_desc>Make dev-lang/icc define __amd64 and __amd64__ preprocessor directives</short_desc>
          <delta_ts>2008-08-22 17:17:57 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>Ebuilds</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mattst88@gmail.com</reporter>
          <assigned_to>bicatali@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>mattst88@gmail.com</who>
            <bug_when>2008-08-02 19:40:32 0000</bug_when>
            <thetext>As per the AMD64 ABI, compliant compilers must define __amd64, __amd64__, __x86_64, and __x86_64__ preprocessor directives[1]. icc does not define __amd64 or __amd64__, and Intel has stated that it has no plans to change this[2]. Many software projects check for __amd64__ only (ie, don&apos;t check for __x86_64__), for instance, the xserver. The developers have also expressed no interest in checking for __x86_64__ for the sole reason of helping Intel, for instance, Adam Jackson, Xorg release manager.[3]

[1] http://www.x86-64.org/documentation/abi.pdf (See Chapter 7)
[2] http://softwarecommunity.intel.com/isn/Community/en-US/forums/post/30251206.aspx
[3] http://cgit.freedesktop.org/xorg/xserver/commit/?id=9719354ae04a41e9834ac9ba8fd9e895092ba4f1

This patch adds __amd64 and __amd64__ defines to icc&apos;s stddef.h.

Please add and bump to 10.1.017-r1.

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mattst88@gmail.com</who>
            <bug_when>2008-08-02 19:40:56 0000</bug_when>
            <thetext>Created an attachment (id=162023)
ebuild patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mattst88@gmail.com</who>
            <bug_when>2008-08-02 19:43:07 0000</bug_when>
            <thetext>Created an attachment (id=162024)
add __amd64 preprocessor directives to stddef.h

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-08-22 17:17:57 0000</bug_when>
            <thetext>Now in cvs. Thanks much for tracking this!
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>162023</attachid>
            <date>2008-08-02 19:40 0000</date>
            <desc>ebuild patch</desc>
            <filename>icc-ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGljYy0xMC4xLjAxNy5lYnVpbGQub3JpZwkyMDA4LTA4LTAyIDE1OjM5OjE2LjAwMDAwMDAw
MCAtMDQwMAorKysgaWNjLTEwLjEuMDE3LmVidWlsZAkyMDA4LTA4LTAyIDE1OjM5OjMzLjAwMDAw
MDAwMCAtMDQwMApAQCAtNTYsNiArNTYsNyBAQAogCQllaW5mbyAiRXh0cmFjdGluZyAkKGJhc2Vu
YW1lICR7eH0pLi4uIgogCQlycG1fdW5wYWNrICIke1N9LyR7eH0iIHx8IGRpZSAicnBtX3VucGFj
ayAke3h9IGZhaWxlZCIKIAlkb25lCisJZXBhdGNoICIke0ZJTEVTRElSfS9pY2MtYWRkLWFtZDY0
LXByZXByb2Nlc3Nvci1kaXJlY3RpdmVzLnBhdGNoIgogCiAJZWluZm8gIkZpeGluZyBwYXRocyBh
bmQgdGFnZ2luZyIKIAljZCAiJHtTfSIvJHtJTlNUQUxMX0RJUn0vYmluCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>162024</attachid>
            <date>2008-08-02 19:43 0000</date>
            <desc>add __amd64 preprocessor directives to stddef.h</desc>
            <filename>icc-add-amd64-preprocessor-directives.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG9wdC9pbnRlbC9jY2UvMTAuMS4wMTcvaW5jbHVkZS9zdGRkZWYuaAkyMDA4LTA4LTAyIDE1
OjA2OjUxLjAwMDAwMDAwMCAtMDQwMAorKysgb3B0L2ludGVsL2NjZS8xMC4xLjAxNy9pbmNsdWRl
L3N0ZGRlZi5oCTIwMDgtMDgtMDIgMTU6MDc6MDYuMDAwMDAwMDAwIC0wNDAwCkBAIC01LDYgKzUs
MTMgQEAKICNkZWZpbmUgX1NURERFRgogKi8KIAorI2lmbmRlZiBfX2FtZDY0CisjZGVmaW5lIF9f
YW1kNjQgX194ODZfNjQKKyNlbmRpZgorI2lmbmRlZiBfX2FtZDY0X18KKyNkZWZpbmUgX19hbWQ2
NF9fIF9feDg2XzY0X18KKyNlbmRpZgorCiAjaWZkZWYgX19RTlhfXyAvKiBKdXN0IHRha2UgUU5Y
IG9uZSAqLwogI2luY2x1ZGVfbmV4dCA8c3RkZGVmLmg+CiAjZWxzZSAvKiBfX1FOWF9fICovCg==
</data>        

          </attachment>
    </bug>

</bugzilla>