<?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>127909</bug_id>
          
          <creation_ts>2014-01-30 07:45:35 -0800</creation_ts>
          <short_desc>[GTK] Disable optimizations for JSC that turned out malignant after jsCStack branch merge</short_desc>
          <delta_ts>2014-01-31 10:58:49 -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>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>127777</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Zan Dobersek">zan</reporter>
          <assigned_to name="Zan Dobersek">zan</assigned_to>
          <cc>berto</cc>
    
    <cc>cgarcia</cc>
    
    <cc>ggaren</cc>
    
    <cc>gustavo</cc>
    
    <cc>mrobinson</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>973723</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-30 07:45:35 -0800</bug_when>
    <thetext>[GTK] Disable optimizations for JSC that turned out malignant after jsCStack branch merge</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973727</commentid>
    <comment_count>1</comment_count>
      <attachid>222668</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-30 07:51:30 -0800</bug_when>
    <thetext>Created attachment 222668
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973729</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-01-30 08:11:07 -0800</bug_when>
    <thetext>-fno-omit-frame-pointer is reasonable, but I&apos;m a little bit sceptic about
-fno-tree-dce . Of course it can be good as a workaround, but it would be
great to find the root of this problem. Could you possibly add a detailed 
comment with bug URL to the GNUmakefile.am too?

I&apos;m not so familiar with autotools files, so I&apos;d like 
to let the final review for the GTK maintainers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973731</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2014-01-30 08:14:28 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; -fno-omit-frame-pointer is reasonable, but I&apos;m a little bit sceptic about
&gt; -fno-tree-dce . Of course it can be good as a workaround, but it would be
&gt; great to find the root of this problem. Could you possibly add a detailed 
&gt; comment with bug URL to the GNUmakefile.am too?
&gt; 
&gt; I&apos;m not so familiar with autotools files, so I&apos;d like 
&gt; to let the final review for the GTK maintainers.

I agree, let&apos;s land this just as a workaround, but we should re-enable the optimizations at some point. Maybe we could file bug reports for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973733</commentid>
    <comment_count>4</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-30 08:16:42 -0800</bug_when>
    <thetext>I think that should go to CFLAGS (compiler flags), not CPPFLAGS
(preprocessor flags).

--- Source/JavaScriptCore/GNUmakefile.am	(revision 163081)
+++ Source/JavaScriptCore/GNUmakefile.am	(working copy)
@@ -70,6 +70,8 @@ javascriptcore_cppflags += \
 	-I$(srcdir)/Source/JavaScriptCore/yarr \
 	-I$(top_builddir)/DerivedSources/JavaScriptCore \
 	-I$(srcdir)/Source/WTF \
+	-fno-omit-frame-pointer \
+	-fno-tree-dce \
 	$(LLVM_CFLAGS)
 
 javascriptcore_cflags += \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973736</commentid>
    <comment_count>5</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-30 08:19:52 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; I think that should go to CFLAGS (compiler flags), not CPPFLAGS
&gt; (preprocessor flags).

CXXFLAGS actually, or are we using CPPFLAGS to make sure that they&apos;re
included in both cases? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973739</commentid>
    <comment_count>6</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-30 08:28:19 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; I think that should go to CFLAGS (compiler flags), not CPPFLAGS
&gt; &gt; (preprocessor flags).
&gt; 
&gt; CXXFLAGS actually, or are we using CPPFLAGS to make sure that they&apos;re
&gt; included in both cases? :)

Yes, we&apos;re trying to cover both cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973744</commentid>
    <comment_count>7</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-30 08:48:20 -0800</bug_when>
    <thetext>My clang installation (3.4) doesn&apos;t seem to like this flag:

clang: error: unknown argument: &apos;-fno-tree-dce&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973827</commentid>
    <comment_count>8</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2014-01-30 11:01:09 -0800</bug_when>
    <thetext>&gt; -fno-omit-frame-pointer is reasonable, but I&apos;m a little bit sceptic about
&gt; -fno-tree-dce . 

Me too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973845</commentid>
    <comment_count>9</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-30 11:18:00 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; My clang installation (3.4) doesn&apos;t seem to like this flag:
&gt; 
&gt; clang: error: unknown argument: &apos;-fno-tree-dce&apos;

Already addressed in bug #127911.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>973846</commentid>
    <comment_count>10</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-30 11:18:45 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; &gt; -fno-omit-frame-pointer is reasonable, but I&apos;m a little bit sceptic about
&gt; &gt; -fno-tree-dce . 
&gt; 
&gt; Me too.

The optimization is only problematic with GCC 4.8 but not with GCC 4.7, so this might be a bug introduced in the compiler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>974365</commentid>
    <comment_count>11</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-31 10:58:30 -0800</bug_when>
    <thetext>Landed in r163083.
http://trac.webkit.org/changeset/163083</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>222668</attachid>
            <date>2014-01-30 07:51:30 -0800</date>
            <delta_ts>2014-01-30 08:11:13 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-127909-20140130075129.patch</filename>
            <type>text/plain</type>
            <size>1363</size>
            <attacher name="Zan Dobersek">zan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTYzMDgyKQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBA
CisyMDE0LTAxLTMwICBaYW4gRG9iZXJzZWsgIDx6ZG9iZXJzZWtAaWdhbGlhLmNvbT4KKworICAg
ICAgICBbR1RLXSBEaXNhYmxlIG9wdGltaXphdGlvbnMgZm9yIEpTQyB0aGF0IHR1cm5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MgKz0gXAogCS1JJChzcmNkaXIpL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS95YXJyIFwKIAktSSQo
dG9wX2J1aWxkZGlyKS9EZXJpdmVkU291cmNlcy9KYXZhU2NyaXB0Q29yZSBcCiAJLUkkKHNyY2Rp
cikvU291cmNlL1dURiBcCisJLWZuby1vbWl0LWZyYW1lLXBvaW50ZXIgXAorCS1mbm8tdHJlZS1k
Y2UgXAogCSQoTExWTV9DRkxBR1MpCiAKIGphdmFzY3JpcHRjb3JlX2NmbGFncyArPSBcCg==
</data>
<flag name="review"
          id="246675"
          type_id="1"
          status="+"
          setter="cgarcia"
    />
          </attachment>
      

    </bug>

</bugzilla>