<?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>20302</bug_id>
          
          <creation_ts>2008-08-06 07:51:20 -0700</creation_ts>
          <short_desc>Wrong signbit implementation for solaris platform</short_desc>
          <delta_ts>2011-03-24 13:12: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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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>0</everconfirmed>
          <reporter name="Alexey Ushakov">alexey.ushakov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87961</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Ushakov">alexey.ushakov</who>
    <bug_when>2008-08-06 07:51:20 -0700</bug_when>
    <thetext>Solaris platform has incomplete implementation for signbit finction in JavaScriptCore/wtf/MathExtras.h.

Here is correct implementation of this function:

inline bool signbit(double num) { return copysign(1.0, num) &lt; 0; }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87964</commentid>
    <comment_count>1</comment_count>
      <attachid>22680</attachid>
    <who name="Alexey Ushakov">alexey.ushakov</who>
    <bug_when>2008-08-06 07:54:33 -0700</bug_when>
    <thetext>Created attachment 22680
signbit patch for solaris platform</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372854</commentid>
    <comment_count>2</comment_count>
      <attachid>86785</attachid>
    <who name="Ben Taylor">bentaylor.solx86</who>
    <bug_when>2011-03-24 09:48:48 -0700</bug_when>
    <thetext>Created attachment 86785
Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler

Add a correct patch that includes a ChangeLog and proper patch using the webkit tools. This was done against webkit head and compiles correctly on Solaris 10/SS12 against qt-4.7.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372859</commentid>
    <comment_count>3</comment_count>
      <attachid>86785</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-03-24 09:53:43 -0700</bug_when>
    <thetext>Comment on attachment 86785
Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler

View in context: https://bugs.webkit.org/attachment.cgi?id=86785&amp;action=review

&gt; Source/JavaScriptCore/wtf/MathExtras.h:93
&gt; -inline bool signbit(double x) { return x &lt; 0.0; } // FIXME: Wrong for negative 0.
&gt; +inline bool signbit(double num) { return copysign(1.0, num) &lt; 0; }

I guess you copied the version from MSVC, which is why the variable name is now num. I would prefer that this file use &quot;x&quot; more consistently or use a word like &quot;number&quot; rather than &quot;num&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372883</commentid>
    <comment_count>4</comment_count>
      <attachid>86789</attachid>
    <who name="Ben Taylor">bentaylor.solx86</who>
    <bug_when>2011-03-24 10:12:06 -0700</bug_when>
    <thetext>Created attachment 86789
Updated patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler, fixed variable &quot;num&quot; to be &quot;x&quot;

Updated patch per request</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372980</commentid>
    <comment_count>5</comment_count>
      <attachid>86789</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-24 12:14:25 -0700</bug_when>
    <thetext>Comment on attachment 86789
Updated patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler, fixed variable &quot;num&quot; to be &quot;x&quot;

Clearing flags on attachment: 86789

Committed r81882: &lt;http://trac.webkit.org/changeset/81882&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>372981</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-24 12:14:29 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373025</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-03-24 13:12:05 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/81882 might have broken Qt Linux Release
The following tests are not passing:
editing/pasteboard/5065605.html
editing/pasteboard/display-block-on-spans.html
editing/pasteboard/paste-text-011.html
editing/pasteboard/paste-text-at-tabspan-002.html</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>22680</attachid>
            <date>2008-08-06 07:54:33 -0700</date>
            <delta_ts>2010-06-10 15:54:20 -0700</delta_ts>
            <desc>signbit patch for solaris platform</desc>
            <filename>signbit.patch</filename>
            <type>text/plain</type>
            <size>459</size>
            <attacher name="Alexey Ushakov">alexey.ushakov</attacher>
            
              <data encoding="base64">PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PQotLS0gSmF2YVNjcmlwdENvcmUvd3RmL01hdGhFeHRyYXMuaCAgICAgKHJldmlz
aW9uIDM1NTM0KQorKysgSmF2YVNjcmlwdENvcmUvd3RmL01hdGhFeHRyYXMuaCAgICAgKHdvcmtp
bmcgY29weSkKQEAgLTc1LDcgKzc1LDcgQEAKIGlubGluZSBib29sIGlzaW5mKGRvdWJsZSB4KSB7
IHJldHVybiAhZmluaXRlKHgpICYmICFpc25hbmQoeCk7IH0KICNlbmRpZgogI2lmbmRlZiBzaWdu
Yml0Ci1pbmxpbmUgYm9vbCBzaWduYml0KGRvdWJsZSB4KSB7IHJldHVybiB4IDwgMC4wOyB9IC8v
IEZJWE1FOiBXcm9uZyBmb3IgbmVnYXRpdmUgMC4KK2lubGluZSBib29sIHNpZ25iaXQoZG91Ymxl
IG51bSkgeyByZXR1cm4gY29weXNpZ24oMS4wLCBudW0pIDwgMDsgfQogI2VuZGlmCiAKICNlbmRp
ZgoK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86785</attachid>
            <date>2011-03-24 09:48:48 -0700</date>
            <delta_ts>2011-03-24 10:12:06 -0700</delta_ts>
            <desc>Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler</desc>
            <filename>webkit-bug-20302-JavaScriptCore-wtf-MathExtras.h-SolarisSignbit.diff</filename>
            <type>text/plain</type>
            <size>1114</size>
            <attacher name="Ben Taylor">bentaylor.solx86</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gODE4NjgpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAK
KzIwMTEtMDMtMjQgIEJlbiBUYXlsb3IgIDxiZW50YXlsb3Iuc29seDg2QGdtYWlsLmNvbT4KKwor
ICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBodHRwczovL2J1
Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjAzMDIKKyAgICAgICAgQ29ycmVjdCBpbXBs
ZW1lbnRhdGlvbiBvZiBzaWduYml0IG9uIFNvbGFyaXMKKworICAgICAgICAqIHd0Zi9NYXRoRXh0
cmFzLmg6CisgICAgICAgIChzaWduYml0KToKKwogMjAxMS0wMy0yMyAgTWFyayBSb3dlICA8bXJv
d2VAYXBwbGUuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVyLgpJbmRleDog
U291cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFzLmgKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFzLmgJKHJldmlzaW9uIDgxODYxKQorKysg
U291cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFzLmgJKHdvcmtpbmcgY29weSkKQEAg
LTkwLDcgKzkwLDcgQEAgaW5saW5lIGJvb2wgaXNmaW5pdGUoZG91YmxlIHgpIHsgcmV0dXJuIAog
aW5saW5lIGJvb2wgaXNpbmYoZG91YmxlIHgpIHsgcmV0dXJuICFmaW5pdGUoeCkgJiYgIWlzbmFu
ZCh4KTsgfQogI2VuZGlmCiAjaWZuZGVmIHNpZ25iaXQKLWlubGluZSBib29sIHNpZ25iaXQoZG91
YmxlIHgpIHsgcmV0dXJuIHggPCAwLjA7IH0gLy8gRklYTUU6IFdyb25nIGZvciBuZWdhdGl2ZSAw
LgoraW5saW5lIGJvb2wgc2lnbmJpdChkb3VibGUgbnVtKSB7IHJldHVybiBjb3B5c2lnbigxLjAs
IG51bSkgPCAwOyB9CiAjZW5kaWYKIAogI2VuZGlmCg==
</data>
<flag name="review"
          id="79123"
          type_id="1"
          status="+"
          setter="darin"
    />
    <flag name="commit-queue"
          id="79124"
          type_id="3"
          status="+"
          setter="darin"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86789</attachid>
            <date>2011-03-24 10:12:06 -0700</date>
            <delta_ts>2011-03-24 12:14:25 -0700</delta_ts>
            <desc>Updated patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler, fixed variable &quot;num&quot; to be &quot;x&quot;</desc>
            <filename>webkit-bug-20302-JavaScriptCore-wtf-MathExtras.h-SolarisSignbit.diff</filename>
            <type>text/plain</type>
            <size>1110</size>
            <attacher name="Ben Taylor">bentaylor.solx86</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gODE4NjgpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAK
KzIwMTEtMDMtMjQgIEJlbiBUYXlsb3IgIDxiZW50YXlsb3Iuc29seDg2QGdtYWlsLmNvbT4KKwor
ICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBodHRwczovL2J1
Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjAzMDIKKyAgICAgICAgQ29ycmVjdCBpbXBs
ZW1lbnRhdGlvbiBvZiBzaWduYml0IG9uIFNvbGFyaXMKKworICAgICAgICAqIHd0Zi9NYXRoRXh0
cmFzLmg6CisgICAgICAgIChzaWduYml0KToKKwogMjAxMS0wMy0yMyAgTWFyayBSb3dlICA8bXJv
d2VAYXBwbGUuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVyLgpJbmRleDog
U291cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFzLmgKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFzLmgJKHJldmlzaW9uIDgxODYxKQorKysg
U291cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFzLmgJKHdvcmtpbmcgY29weSkKQEAg
LTkwLDcgKzkwLDcgQEAgaW5saW5lIGJvb2wgaXNmaW5pdGUoZG91YmxlIHgpIHsgcmV0dXJuIAog
aW5saW5lIGJvb2wgaXNpbmYoZG91YmxlIHgpIHsgcmV0dXJuICFmaW5pdGUoeCkgJiYgIWlzbmFu
ZCh4KTsgfQogI2VuZGlmCiAjaWZuZGVmIHNpZ25iaXQKLWlubGluZSBib29sIHNpZ25iaXQoZG91
YmxlIHgpIHsgcmV0dXJuIHggPCAwLjA7IH0gLy8gRklYTUU6IFdyb25nIGZvciBuZWdhdGl2ZSAw
LgoraW5saW5lIGJvb2wgc2lnbmJpdChkb3VibGUgeCkgeyByZXR1cm4gY29weXNpZ24oMS4wLCB4
KSA8IDA7IH0KICNlbmRpZgogCiAjZW5kaWYK
</data>

          </attachment>
      

    </bug>

</bugzilla>