<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>128301</bug_id>
          
          <creation_ts>2014-02-06 02:50:09 -0800</creation_ts>
          <short_desc>Misused PLATFORM(MIDDLE_ENDIAN) and PLATFORM(BIG_ENDIAN)</short_desc>
          <delta_ts>2014-06-18 00:00:05 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tamas Gergely">tgergely.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>977302</commentid>
    <comment_count>0</comment_count>
    <who name="Tamas Gergely">tgergely.u-szeged</who>
    <bug_when>2014-02-06 02:50:09 -0800</bug_when>
    <thetext>MIDDLE_ENDIAN and BIG_ENDIAN are CPU attributes and not platform. They should be used with CPU() macro, and not with PLATFORM().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>977303</commentid>
    <comment_count>1</comment_count>
      <attachid>223320</attachid>
    <who name="Tamas Gergely">tgergely.u-szeged</who>
    <bug_when>2014-02-06 02:51:53 -0800</bug_when>
    <thetext>Created attachment 223320
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016263</commentid>
    <comment_count>2</comment_count>
      <attachid>223320</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2014-06-17 14:59:41 -0700</bug_when>
    <thetext>Comment on attachment 223320
patch

r=me

Is there any way we can prevent this? From briefly searching, GCC has option -Wundef to warn about undefined identifiers. Would enabling it lead to many false positives?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016277</commentid>
    <comment_count>3</comment_count>
      <attachid>223320</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-17 15:35:54 -0700</bug_when>
    <thetext>Comment on attachment 223320
patch

Clearing flags on attachment: 223320

Committed r170081: &lt;http://trac.webkit.org/changeset/170081&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016278</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-17 15:35:57 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016387</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-06-18 00:00:05 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 223320 [details])
&gt; r=me
&gt; 
&gt; Is there any way we can prevent this? From briefly searching, GCC has option -Wundef to warn about undefined identifiers. Would enabling it lead to many false positives?

-Wundef is used by EFL port, but it doesn&apos;t help similar issues,
because PLATFORM macro has the following definition:

#define PLATFORM(WTF_FEATURE) (defined WTF_PLATFORM_##WTF_FEATURE  &amp;&amp; WTF_PLATFORM_##WTF_FEATURE)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>223320</attachid>
            <date>2014-02-06 02:51:53 -0800</date>
            <delta_ts>2014-06-17 15:35:54 -0700</delta_ts>
            <desc>patch</desc>
            <filename>fix_platform_cpu_endianness.patch</filename>
            <type>text/plain</type>
            <size>1402</size>
            <attacher name="Tamas Gergely">tgergely.u-szeged</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nIGIvU291cmNlL1dURi9DaGFuZ2VMb2cK
aW5kZXggNjZkMTgwNS4uZTVjMjVmNiAxMDA2NDQKLS0tIGEvU291cmNlL1dURi9DaGFuZ2VMb2cK
KysrIGIvU291cmNlL1dURi9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNSBAQAorMjAxNC0wMi0wNiAg
VGFtYXMgR2VyZ2VseSAgPHRnZXJnZWx5LnUtc3plZ2VkQHBhcnRuZXIuc2Ftc3VuZy5jb20+CisK
KyAgICAgICAgTWlzdXNlZCBQTEFURk9STShNSURETEVfRU5ESUFOKSBhbmQgUExBVEZPUk0oQklH
X0VORElBTikuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD0xMjgzMDEKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICBFbmRpYW5uZXNzIGlzIGEgQ1BVIGF0dHJpYnV0ZSwgbm90IGEgUExBVEZPUk0uIFBMQVRGT1JN
KCkgbWFjcm8gaXMgcmVwbGFjZWQgdG8gQ1BVKCkuCisKKyAgICAgICAgKiB3dGYvdGV4dC9BU0NJ
SUZhc3RQYXRoLmg6CisgICAgICAgIChXVEY6OmNvcHlMQ2hhcnNGcm9tVUNoYXJTb3VyY2UpOgor
CiAyMDE0LTAyLTA1ICBaYW4gRG9iZXJzZWsgIDx6ZG9iZXJzZWtAaWdhbGlhLmNvbT4KIAogICAg
ICAgICBSZW1vdmUgdGhlIFdURl9DT01QSUxFUl9TVVBQT1JUU19DWFhfR0VORVJBTElaRURfSU5J
VElBTElaRVJTIG1hY3JvCmRpZmYgLS1naXQgYS9Tb3VyY2UvV1RGL3d0Zi90ZXh0L0FTQ0lJRmFz
dFBhdGguaCBiL1NvdXJjZS9XVEYvd3RmL3RleHQvQVNDSUlGYXN0UGF0aC5oCmluZGV4IDg1ZTk2
ZWIuLjRhZDFiMDggMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XVEYvd3RmL3RleHQvQVNDSUlGYXN0UGF0
aC5oCisrKyBiL1NvdXJjZS9XVEYvd3RmL3RleHQvQVNDSUlGYXN0UGF0aC5oCkBAIC0xNjAsNyAr
MTYwLDcgQEAgaW5saW5lIHZvaWQgY29weUxDaGFyc0Zyb21VQ2hhclNvdXJjZShMQ2hhciogZGVz
dGluYXRpb24sIGNvbnN0IFVDaGFyKiBzb3VyY2UsIHMKIAogICAgIHdoaWxlIChkZXN0aW5hdGlv
biAhPSBlbmQpCiAgICAgICAgICpkZXN0aW5hdGlvbisrID0gc3RhdGljX2Nhc3Q8TENoYXI+KCpz
b3VyY2UrKyk7Ci0jZWxpZiBDT01QSUxFUihHQ0MpICYmIENQVShBUk1fTkVPTikgJiYgIShQTEFU
Rk9STShCSUdfRU5ESUFOKSB8fCBQTEFURk9STShNSURETEVfRU5ESUFOKSkgJiYgZGVmaW5lZChO
REVCVUcpCisjZWxpZiBDT01QSUxFUihHQ0MpICYmIENQVShBUk1fTkVPTikgJiYgIShDUFUoQklH
X0VORElBTikgfHwgQ1BVKE1JRERMRV9FTkRJQU4pKSAmJiBkZWZpbmVkKE5ERUJVRykKICAgICBj
b25zdCBMQ2hhciogY29uc3QgZW5kID0gZGVzdGluYXRpb24gKyBsZW5ndGg7CiAgICAgY29uc3Qg
dWludHB0cl90IG1lbW9yeUFjY2Vzc1NpemUgPSA4OwogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>