<?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>63642</bug_id>
          
          <creation_ts>2011-06-29 12:11:22 -0700</creation_ts>
          <short_desc>[Qt] Visual Studio 2010 compiler warning about TR1 support in JavascriptCore</short_desc>
          <delta_ts>2012-02-10 08:32:33 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Aron Rosenberg">arosenberg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>menard</cc>
    
    <cc>net147</cc>
    
    <cc>noam</cc>
    
    <cc>robt_0</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>429772</commentid>
    <comment_count>0</comment_count>
      <attachid>99123</attachid>
    <who name="Aron Rosenberg">arosenberg</who>
    <bug_when>2011-06-29 12:11:22 -0700</bug_when>
    <thetext>Created attachment 99123
patch to fix tr1 warning for VS2010

When building qtwebkit-2.2 branch with Visual Studio 2010, there is a warning about _HAS_TR1 being redefined. VS 2010 fully supports TR1 so the override of the define in the JavascriptCore pri file is not needed. Attached is a patch which fixes this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>440482</commentid>
    <comment_count>1</comment_count>
    <who name="Rob Tomek">robt_0</who>
    <bug_when>2011-07-21 10:41:40 -0700</bug_when>
    <thetext>Same thing here. It&apos;s a really easy fix to make (7 characters), and it would be nice to get rid of all of the compiler warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>440537</commentid>
    <comment_count>2</comment_count>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2011-07-21 11:50:13 -0700</bug_when>
    <thetext>Is this patch for a review?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>440551</commentid>
    <comment_count>3</comment_count>
    <who name="Aron Rosenberg">arosenberg</who>
    <bug_when>2011-07-21 11:59:17 -0700</bug_when>
    <thetext>yes, the patch should be for review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>440560</commentid>
    <comment_count>4</comment_count>
      <attachid>99123</attachid>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2011-07-21 12:07:21 -0700</bug_when>
    <thetext>Comment on attachment 99123
patch to fix tr1 warning for VS2010

What about mingw? 
Shouldn&apos;t this be -win32-*:!win32-msvc2010:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>440563</commentid>
    <comment_count>5</comment_count>
    <who name="Aron Rosenberg">arosenberg</who>
    <bug_when>2011-07-21 12:11:38 -0700</bug_when>
    <thetext>I don&apos;t have a mingw setup, so I can&apos;t answer this, but win32-icc behaves the same as msvc2010.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>440613</commentid>
    <comment_count>6</comment_count>
    <who name="Rob Tomek">robt_0</who>
    <bug_when>2011-07-21 13:18:04 -0700</bug_when>
    <thetext>As far as I can tell, we can just delete that line and it should have no effect on any compiler. The only file that I can find using TR1 is wtf/TypeTraits.h, and lines 27 &amp; 182 already have:

#if (defined(__GLIBCXX__) &amp;&amp; (__GLIBCXX__ &gt;= 20070724) &amp;&amp; defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) &amp;&amp; (_MSC_VER &gt;= 1600))

Aron&apos;s ICC compiler shouldn&apos;t even be using the TR1 commands anyway. Also, if mingw doesn&apos;t have a gcc version with the cxx0x defined, then it doesn&apos;t use that code either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441456</commentid>
    <comment_count>7</comment_count>
      <attachid>99123</attachid>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2011-07-24 09:22:54 -0700</bug_when>
    <thetext>Comment on attachment 99123
patch to fix tr1 warning for VS2010

OK, those multiple Windows configs are hard to test. But if it breaks a bot, prepare for a rollout :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>473982</commentid>
    <comment_count>8</comment_count>
    <who name="Rob Tomek">robt_0</who>
    <bug_when>2011-09-27 09:30:06 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 99123 [details])
&gt; OK, those multiple Windows configs are hard to test. But if it breaks a bot, prepare for a rollout :)

The only two compilers that _HAS_TR1 even affects are VS2008 with the feature pack installed and VS2010. It looks like at one time that they wanted to block VS2008 with the feature pack and someone added _HAS_TR1 = 0, but someone else accomplished the same thing by putting in _MSC_VER &gt;= 1600 around the TR1 commands. The VS2008 implementation of TR1 is not fully conforming, so I&apos;m assuming that&apos;s why it is avoided. Basically, we have two fixes for the problem in place, with one causing an enormous amount of obnoxious warnings (and downgrading the VS2010 compiler).

gcc, icc, etc. will not be affected since _HAS_TR1 doesn&apos;t even do anything. Someone should just delete that line, or at least implement this patch, already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503241</commentid>
    <comment_count>9</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2011-11-15 14:03:09 -0800</bug_when>
    <thetext>Note that since VS2010 now support nullptr_t, the JavaScriptCore.def declaration for ?nullptr@@3Vnullptr_t@std@@A must be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>525704</commentid>
    <comment_count>10</comment_count>
      <attachid>99123</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-12-21 15:20:38 -0800</bug_when>
    <thetext>Comment on attachment 99123
patch to fix tr1 warning for VS2010

All changes require a Changelog.  Sorry that&apos;s going to be so many more lines than thsi change. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535866</commentid>
    <comment_count>11</comment_count>
      <attachid>122476</attachid>
    <who name="Aron Rosenberg">arosenberg</who>
    <bug_when>2012-01-13 11:53:26 -0800</bug_when>
    <thetext>Created attachment 122476
Remove TR1 define

Added changelog entry and changed patch to remove the define based on the bug feedback</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>536656</commentid>
    <comment_count>12</comment_count>
      <attachid>122476</attachid>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2012-01-16 10:33:36 -0800</bug_when>
    <thetext>Comment on attachment 122476
Remove TR1 define

Well it will most likely break older version of Visual Studio no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>536658</commentid>
    <comment_count>13</comment_count>
    <who name="Aron Rosenberg">arosenberg</who>
    <bug_when>2012-01-16 10:35:38 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; (From update of attachment 122476 [details])
&gt; Well it will most likely break older version of Visual Studio no?

See comment #8, the effected code has already been properly ifdef with _MSC_VER checks. The define in the qt file is not needed (and not done in the non-Qt builds anyway).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>554064</commentid>
    <comment_count>14</comment_count>
      <attachid>122476</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-02-10 07:07:45 -0800</bug_when>
    <thetext>Comment on attachment 122476
Remove TR1 define

Ok, I trust you on this one :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>554088</commentid>
    <comment_count>15</comment_count>
      <attachid>122476</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-10 08:32:28 -0800</bug_when>
    <thetext>Comment on attachment 122476
Remove TR1 define

Clearing flags on attachment: 122476

Committed r107404: &lt;http://trac.webkit.org/changeset/107404&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>554089</commentid>
    <comment_count>16</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-10 08:32:33 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>99123</attachid>
            <date>2011-06-29 12:11:22 -0700</date>
            <delta_ts>2012-01-13 11:53:26 -0800</delta_ts>
            <desc>patch to fix tr1 warning for VS2010</desc>
            <filename>fix_tr1_warning.diff</filename>
            <type>text/plain</type>
            <size>434</size>
            <attacher name="Aron Rosenberg">arosenberg</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9KYXZhU2NyaXB0Q29yZS5wcmkgYi9T
b3VyY2UvSmF2YVNjcmlwdENvcmUvSmF2YVNjcmlwdENvcmUucHJpDQppbmRleCBmNmQwNjRmLi5i
YmVjNGMyIDEwMDY0NA0KLS0tIGEvU291cmNlL0phdmFTY3JpcHRDb3JlL0phdmFTY3JpcHRDb3Jl
LnByaQ0KKysrIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0phdmFTY3JpcHRDb3JlLnByaQ0KQEAg
LTUzLDcgKzUzLDcgQEAgc3ltYmlhbiB7DQogICAgIElOQ0xVREVQQVRIICo9ICQkTVdfTEFZRVJf
U1lTVEVNSU5DTFVERQ0KIH0NCiANCi13aW4zMi0qOiBERUZJTkVTICs9IF9IQVNfVFIxPTANCit3
aW4zMi1tc3ZjMjAwKjogREVGSU5FUyArPSBfSEFTX1RSMT0wDQogDQogREVGSU5FUyArPSBCVUlM
RElOR19KYXZhU2NyaXB0Q29yZSBCVUlMRElOR19XVEYNCiA=
</data>
<flag name="review"
          id="96602"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>122476</attachid>
            <date>2012-01-13 11:53:26 -0800</date>
            <delta_ts>2012-02-10 08:32:28 -0800</delta_ts>
            <desc>Remove TR1 define</desc>
            <filename>remove_tr1.diff</filename>
            <type>text/plain</type>
            <size>999</size>
            <attacher name="Aron Rosenberg">arosenberg</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cNCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCi0tLSBT
b3VyY2UvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nICAgICAocmV2aXNpb24gMTA0OTYxKQ0KKysr
IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgICAgICh3b3JraW5nIGNvcHkpDQpAQCAt
MSwzICsxLDEyIEBADQorMjAxMi0wMS0xMyAgQXJvbiBSb3NlbmJlcmcgIDxhcm9zZW5iZXJnQGxv
Z2l0ZWNoLmNvbT4NCisNCisgICAgICAgIFtRdF0gRml4IGNvbXBpbGVyIHdhcm5pbmcgaW4gVmlz
dWFsIFN0dWRpbyAyMDEwIGFib3V0IFRSMQ0KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTYzNjQyDQorDQorICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4NCisNCisgICAgICAgICogSmF2YVNjcmlwdENvcmUucHJpOg0KKw0KIDIwMTItMDEt
MTMgIERhdmlkIExldmluICA8bGV2aW5AY2hyb21pdW0ub3JnPg0KDQogICAgICAgICBIV25kREMg
aXMgYSBiZXR0ZXIgbmFtZSB0aGFuIEh3bmREQy4NCkluZGV4OiBTb3VyY2UvSmF2YVNjcmlwdENv
cmUvSmF2YVNjcmlwdENvcmUucHJpDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gU291cmNlL0phdmFTY3JpcHRD
b3JlL0phdmFTY3JpcHRDb3JlLnByaSAgICAocmV2aXNpb24gMTA0OTUzKQ0KKysrIFNvdXJjZS9K
YXZhU2NyaXB0Q29yZS9KYXZhU2NyaXB0Q29yZS5wcmkgICAgKHdvcmtpbmcgY29weSkNCkBAIC0y
OSw3ICsyOSw2IEBADQogICAgICQkSkFWQVNDUklQVENPUkVfR0VORVJBVEVEX1NPVVJDRVNfRElS
DQoNCiB3aW4zMi0qIHsNCi0gICAgREVGSU5FUyArPSBfSEFTX1RSMT0wDQogICAgIExJQlMgKz0g
LWx3aW5tbQ0KDQogICAgIHdpbjMyLWcrKyogew0K
</data>

          </attachment>
      

    </bug>

</bugzilla>