<?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>130507</bug_id>
          
          <creation_ts>2014-03-20 06:15:29 -0700</creation_ts>
          <short_desc>webkitgtk 2.3.92 fails to build on Debian/armhf: error: unable to find a register to spill in class &apos;LO_REGS&apos;</short_desc>
          <delta_ts>2014-04-04 04:06:15 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Iain Lane">iain.lane</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
    
    <cc>gustavo</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>992488</commentid>
    <comment_count>0</comment_count>
    <who name="Iain Lane">iain.lane</who>
    <bug_when>2014-03-20 06:15:29 -0700</bug_when>
    <thetext>On Debian armhf (Thumb 2: https://wiki.debian.org/ArmHardFloatPort), webkitgtk as of 2.3.92 fails to build like this:

../Source/JavaScriptCore/jit/JITArithmetic32_64.cpp: In member function &apos;void JSC::JIT::emit_op_add(JSC::Instruction*)&apos;:
../Source/JavaScriptCore/jit/JITArithmetic32_64.cpp:526:1: error: unable to find a register to spill in class &apos;LO_REGS&apos;
 }
 ^
../Source/JavaScriptCore/jit/JITArithmetic32_64.cpp:526:1: error: this is the insn:
(insn 187 186 188 20 (parallel [
            (set (reg:SI 3 r3)
                (ior:SI (eq:SI (reg/v:SI 112 [ op ])
                        (reg/v:SI 110 [ dst ]))
                    (eq:SI (reg/v:SI 111 [ op ])
                        (reg/v:SI 110 [ dst ]))))
            (clobber (reg:CC 100 cc))
        ]) ../Source/JavaScriptCore/jit/JITArithmetic32_64.cpp:514 284 {*ior_scc_scc}
     (expr_list:REG_UNUSED (reg:CC 100 cc)
        (nil)))
../Source/JavaScriptCore/jit/JITArithmetic32_64.cpp:526: confused by earlier errors, bailing out

Full log is 

  https://buildd.debian.org/status/fetch.php?pkg=webkitgtk&amp;arch=armhf&amp;ver=2.3.92-1&amp;stamp=1395146394</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>992672</commentid>
    <comment_count>1</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-03-20 13:01:29 -0700</bug_when>
    <thetext>I saw this but I didn&apos;t have the time to look into it yet, thanks for reporting!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993145</commentid>
    <comment_count>2</comment_count>
    <who name="Iain Lane">iain.lane</who>
    <bug_when>2014-03-21 09:35:56 -0700</bug_when>
    <thetext>I spoke to the GCC maintainer in Debian &amp; Ubuntu and he believes it&apos;s a bug in gcc-4.8 that webkit exposed by adding -fno-tree-dce in .92.

  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60617</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993746</commentid>
    <comment_count>3</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-03-24 02:18:48 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I spoke to the GCC maintainer in Debian &amp; Ubuntu and he believes
&gt; it&apos;s a bug in gcc-4.8 that webkit exposed by adding -fno-tree-dce in
&gt; .92.
&gt;
&gt;   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60617

I&apos;m not sure why we need -fno-tree-dce anyway. Žan?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993934</commentid>
    <comment_count>4</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-03-24 13:07:50 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I spoke to the GCC maintainer in Debian &amp; Ubuntu and he believes
&gt; &gt; it&apos;s a bug in gcc-4.8 that webkit exposed by adding -fno-tree-dce in
&gt; &gt; .92.
&gt; &gt;
&gt; &gt;   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60617
&gt; 
&gt; I&apos;m not sure why we need -fno-tree-dce anyway. Žan?

This avoids an apparent GCC 4.8 bug which was crashing tests after the jsCStack branch was merged. The optimization was disabled in bug #127909.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995804</commentid>
    <comment_count>5</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-03-31 03:19:25 -0700</bug_when>
    <thetext>Still failing as of 2.4.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>996147</commentid>
    <comment_count>6</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-03-31 23:33:56 -0700</bug_when>
    <thetext>How many JSC tests fail on the armhf build if the -fno-tree-dce flag is removed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>996660</commentid>
    <comment_count>7</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-04-02 04:08:00 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; How many JSC tests fail on the armhf build if the -fno-tree-dce flag is removed?

I cannot give it a try right now but I&apos;ll try to do it as soon as I have the time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997537</commentid>
    <comment_count>8</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-04-04 04:06:15 -0700</bug_when>
    <thetext>The armhf machine I&apos;m trying on is very slow, but at least JSC seems to build fine.

I&apos;d say let&apos;s disable -fno-tree-dce in Debian for the time being until the GCC bug is solved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>