<?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>34740</bug_id>
          
          <creation_ts>2010-02-08 19:17:28 -0800</creation_ts>
          <short_desc>Implement NEVER_INLINE and NO_RETURN for RVCT</short_desc>
          <delta_ts>2010-02-14 22:31:50 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>27065</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Gombos">laszlo.gombos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>joybro201</cc>
    
    <cc>koshuin</cc>
    
    <cc>norbert.leser</cc>
    
    <cc>skyul</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>188862</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2010-02-08 19:17:28 -0800</bug_when>
    <thetext>NEVER_INLINE and NO_RETURN are only implemented for GCC at the moment; RVCT has support for these attributes as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188865</commentid>
    <comment_count>1</comment_count>
      <attachid>48385</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2010-02-08 19:20:12 -0800</bug_when>
    <thetext>Created attachment 48385
proposed patch

Have not had a chance to test the patch myself; maybe someone form CC can help with testing before I get to it. Thanks !</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188873</commentid>
    <comment_count>2</comment_count>
    <who name="Kwang Yul Seo">skyul</who>
    <bug_when>2010-02-08 19:54:40 -0800</bug_when>
    <thetext>I can&apos;t find __declspec(noinline) in RVCT 2.2 manual. It is available in RVCT 4.0.

I will test the patch myself with RVCT 2.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188941</commentid>
    <comment_count>3</comment_count>
    <who name="Kwang Yul Seo">skyul</who>
    <bug_when>2010-02-09 02:40:49 -0800</bug_when>
    <thetext>Okay. It works fine with RVCT 2.2 [Build 593] though I couldn&apos;t find __declspec(noinline) in RVCT 2.2 manual. LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188977</commentid>
    <comment_count>4</comment_count>
    <who name="Janne Koskinen">koshuin</who>
    <bug_when>2010-02-09 05:44:18 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Okay. It works fine with RVCT 2.2 [Build 593] though I couldn&apos;t find
&gt; __declspec(noinline) in RVCT 2.2 manual. LGTM.

Tried looking for answer to this as well. __declspec(noinline) is completely missing from docs for RVCT2.2.
Did you check that it actually didn&apos;t inline your function if keyword was used? I mean if it would be happy with __declspec(foobar).

But in any case I agree this should be landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188981</commentid>
    <comment_count>5</comment_count>
    <who name="Kwang Yul Seo">skyul</who>
    <bug_when>2010-02-09 06:30:30 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Okay. It works fine with RVCT 2.2 [Build 593] though I couldn&apos;t find
&gt; &gt; __declspec(noinline) in RVCT 2.2 manual. LGTM.
&gt; 
&gt; Tried looking for answer to this as well. __declspec(noinline) is completely
&gt; missing from docs for RVCT2.2.
&gt; Did you check that it actually didn&apos;t inline your function if keyword was used?
&gt; I mean if it would be happy with __declspec(foobar).
&gt; 
&gt; But in any case I agree this should be landed.

RVCT is not happy with __declspec(foobar).

Warning: L6305W: Image does not have an entry point. (Not specified or not set due to multiple choices.)
Finished: 0 information, 1 warning and 0 error messages.
&quot;a.c&quot;, line 7: Warning:  #645-D: &quot;foobar&quot; is an unrecognized __declspec attribute
  __declspec(foobar) void foo(UChar* u)
             ^
a.c: 1 warning, 0 errors


RVCT 2.2 certainly recognizes __declspec(noinline) though it is not documented. I didn&apos;t check if the function with __declspec(noinline) is actually not inlined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189120</commentid>
    <comment_count>6</comment_count>
      <attachid>48385</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-02-09 12:20:20 -0800</bug_when>
    <thetext>Comment on attachment 48385
proposed patch

Sounds like everyone is in agreement that this should be landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190388</commentid>
    <comment_count>7</comment_count>
      <attachid>48385</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-14 22:31:39 -0800</bug_when>
    <thetext>Comment on attachment 48385
proposed patch

Clearing flags on attachment: 48385

Committed r54765: &lt;http://trac.webkit.org/changeset/54765&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190389</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-14 22:31:50 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>48385</attachid>
            <date>2010-02-08 19:20:12 -0800</date>
            <delta_ts>2010-02-14 22:31:38 -0800</delta_ts>
            <desc>proposed patch</desc>
            <filename>34740.patch</filename>
            <type>text/plain</type>
            <size>1162</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRD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19ub2lubGlu
ZV9fKSkKKyNlbGlmIENPTVBJTEVSKFJWQ1QpCisjZGVmaW5lIE5FVkVSX0lOTElORSBfX2RlY2xz
cGVjKG5vaW5saW5lKQogI2Vsc2UKICNkZWZpbmUgTkVWRVJfSU5MSU5FCiAjZW5kaWYKQEAgLTU3
LDYgKzU5LDggQEAKICNpZm5kZWYgTk9fUkVUVVJOCiAjaWYgQ09NUElMRVIoR0NDKQogI2RlZmlu
ZSBOT19SRVRVUk4gX19hdHRyaWJ1dGUoKF9fbm9yZXR1cm5fXykpCisjZWxpZiBDT01QSUxFUihS
VkNUKQorI2RlZmluZSBOT19SRVRVUk4gX19kZWNsc3BlYyhub3JldHVybikKICNlbHNlCiAjZGVm
aW5lIE5PX1JFVFVSTgogI2VuZGlmCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>