<?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>145377</bug_id>
          
          <creation_ts>2015-05-26 03:41:39 -0700</creation_ts>
          <short_desc>[ARM] Build SVGPathElement.cpp with -O2 due to a GCC bug</short_desc>
          <delta_ts>2017-05-10 01:20:24 -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>
          
          <blocked>108645</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>ossy</cc>
    
    <cc>silvio.frischi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1097298</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-26 03:41:39 -0700</bug_when>
    <thetext>log from GTK ARM buildbot:
---------------------------

In file included from ../../Source/WebCore/svg/SVGPathElement.cpp:22:0:
../../Source/WebCore/svg/SVGPathElement.h: In member function ‘virtual WebCore::FloatRect WebCore::SVGPathElement::_ZTv0_n24_N7WebCore14SVGPathElement7getBBoxENS_12SVGLocatable19StyleUpdateStrategyE(WebCore::SVGLocatable::StyleUpdateStrategy)’:
../../Source/WebCore/svg/SVGPathElement.h:94:23: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7671
     virtual FloatRect getBBox(StyleUpdateStrategy = AllowStyleUpdate) override;
                       ^
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;file:///usr/share/doc/gcc-4.9/README.Bugs&gt; for instructions.
Preprocessed source stored into /tmp/cc8TnIRO.out file, please attach this to your bugreport.


It is a known GCC bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64896 - 
which is already fixed in GCC trunk and 4.9 branch. 

But unfortunately the bug was fixed after 4.9.2 release, so we need to 
build this source with O2 until bumping to 4.9.3 (not yet released) or 5.1.

Patch is coming soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097299</commentid>
    <comment_count>1</comment_count>
      <attachid>253703</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-26 04:14:37 -0700</bug_when>
    <thetext>Created attachment 253703
Patch

-O2 fixed this issue for me long long time ago - https://bugs.webkit.org/show_bug.cgi?id=140162#c94 , but I haven&apos;t tested it now. I tested the cmake version check, it adds the O2 flag for all 4.9 version older than the not yet released 4.9.3. There is only one possible issue ... Linaro has released GCC versions with the 4.9.3 version number which conatain this bug, but their latest 4.9.3 (15.03) release already contains the upstream fix. But I don&apos;t think if we can/should check the non official GCC version numbers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097302</commentid>
    <comment_count>2</comment_count>
      <attachid>253703</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-05-26 04:50:11 -0700</bug_when>
    <thetext>Comment on attachment 253703
Patch

Ok, let&apos;s try with this. Thanks Ossy!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097303</commentid>
    <comment_count>3</comment_count>
      <attachid>253703</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-26 04:53:32 -0700</bug_when>
    <thetext>Comment on attachment 253703
Patch

Clearing flags on attachment: 253703

Committed r184857: &lt;http://trac.webkit.org/changeset/184857&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097304</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-26 04:53:39 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1306764</commentid>
    <comment_count>5</comment_count>
    <who name="Silvio Frischknecht">silvio.frischi</who>
    <bug_when>2017-05-10 01:20:24 -0700</bug_when>
    <thetext>This patch does not work for allinone builds, in which case svg/SVGAllInOne.cpp is still compiled with -O3 and fails.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>253703</attachid>
            <date>2015-05-26 04:14:37 -0700</date>
            <delta_ts>2015-05-26 04:53:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-145377-20150526041426.patch</filename>
            <type>text/plain</type>
            <size>1458</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg0ODU1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggOTEzNTUyZjNkYjhmYjFm
OGQzMjdjYzRmNDc5ZmE3ZDg4YTNmYWZlZS4uMjYxNDdkZjlkNDk3YzVhMjA0MzhhN2QyNjdmODRk
OTNmN2E3N2QzZiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEyIEBACisyMDE1LTA1LTI2ICBDc2Fi
YSBPc3p0cm9nb27DoWMgIDxvc3N5QHdlYmtpdC5vcmc+CisKKyAgICAgICAgW0FSTV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