<?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>25654</bug_id>
          
          <creation_ts>2009-05-08 15:57:07 -0700</creation_ts>
          <short_desc>Does not compile on X86_64</short_desc>
          <delta_ts>2009-05-10 07:31: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>OS X 10.5</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sebastian">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120484</commentid>
    <comment_count>0</comment_count>
    <who name="Sebastian">webkit</who>
    <bug_when>2009-05-08 15:57:07 -0700</bug_when>
    <thetext>Build fails on x86_64

/doltlibtool --tag=CXX   --mode=compile g++ -Wl,--as-needed -DHAVE_CONFIG_H -I. -I..  -DWTF_USE_ICU_UNICODE=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DWTF_CHANGES -DPACKAGE_LOCALE_DIR=\&quot;/usr/share/locale\&quot;  -DXP_UNIX -DNDEBUG    -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/parser -I../JavaScriptCore/wtf -I./DerivedSources -I../JavaScriptCore/API -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/jit -I../JavaScriptCore/pcre -I../JavaScriptCore/profiler -I../JavaScriptCore/runtime -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/assembler -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/yarr -I./JavaScriptCore/pcre -I./JavaScriptCore/parser -I./JavaScriptCore/runtime  -fvisibility-inlines-hidden -fno-rtti -fstrict-aliasing -O3 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -fvisibility=hidden -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT -I/usr/include -g -Wall -O2 -O2 -MT JavaScriptCore/jit/libJavaScriptCore_la-JITArithmetic.lo -MD -MP -MF JavaScriptCore/jit/.deps/libJavaScriptCore_la-JITArithmetic.Tpo -c -o JavaScriptCore/jit/libJavaScriptCore_la-JITArithmetic.lo `test -f &apos;JavaScriptCore/jit/JITArithmetic.cpp&apos; || echo &apos;../&apos;`JavaScriptCore/jit/JITArithmetic.cpp
../JavaScriptCore/jit/JITArithmetic.cpp: Assembler messages:
../JavaScriptCore/jit/JITArithmetic.cpp:79: Error: suffix or operands invalid for `push&apos;
../JavaScriptCore/jit/JITArithmetic.cpp:79: Error: suffix or operands invalid for `pop&apos;
make[2]: *** [JavaScriptCore/jit/libJavaScriptCore_la-JITArithmetic.lo] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120485</commentid>
    <comment_count>1</comment_count>
      <attachid>30146</attachid>
    <who name="Sebastian">webkit</who>
    <bug_when>2009-05-08 15:58:09 -0700</bug_when>
    <thetext>Created attachment 30146
fix patch

With this patch it builds and I was able to browse on some sites with midori</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120487</commentid>
    <comment_count>2</comment_count>
      <attachid>30146</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2009-05-08 16:28:15 -0700</bug_when>
    <thetext>Comment on attachment 30146
fix patch

&gt; From ad2cb622ba352ba693352072e5b6e64abfed2576 Mon Sep 17 00:00:00 2001
&gt; From: Sebastian Andrzej Siewior &lt;sebastian@breakpoint.cc&gt;
&gt; Date: Sat, 9 May 2009 00:31:08 +0200
&gt; Subject: [PATCH 2/2] JavaScriptCore: fix complie on x86_64 boxes
&gt; 
&gt; The assembly code is for 32bit cpus and breaks compilation on 64bit cpus.
&gt; PLATFORM(MAC) is defined in case PLATFORM(DARWIN) is defined which in turn
&gt; is defined if __APPLE__ is defined. This is the case on PowerPC machines. The
&gt; &quot;new&quot; iMacs should have __x86_64__ defined and be handled by PLATFORM(X86_64)
&gt; 
&gt; Signed-off-by: Sebastian Andrzej Siewior &lt;sebastian@breakpoint.cc&gt;
&gt; ---
&gt;  JavaScriptCore/jit/JITArithmetic.cpp |    6 +++---
&gt;  1 files changed, 3 insertions(+), 3 deletions(-)
&gt; 
&gt; diff --git a/JavaScriptCore/jit/JITArithmetic.cpp b/JavaScriptCore/jit/JITArithmetic.cpp
&gt; index 9f325e3..3a776cc 100644
&gt; --- a/JavaScriptCore/jit/JITArithmetic.cpp
&gt; +++ b/JavaScriptCore/jit/JITArithmetic.cpp
&gt; @@ -44,11 +44,11 @@
&gt;  
&gt;  using namespace std;
&gt;  
&gt; -#if PLATFORM(MAC)
&gt; -
&gt; +#if PLATFORM(X86_64)
&gt; +/* Shortcut: All x86-64 CPUs support SSE2 so we can skip this  */
&gt;  static inline bool isSSE2Present()
&gt;  {
&gt; -    return true; // All X86 Macs are guaranteed to support at least SSE2
&gt; +    return true;
&gt;  }

I think this will disable sse2 optimizations on 32bit x86. I think you want &quot;if PLATFORM(X86_64) || (PLATFORM(X86) &amp;&amp; PLATFORM(MAC))&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120516</commentid>
    <comment_count>3</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-05-09 08:50:05 -0700</bug_when>
    <thetext>&gt; I think this will disable sse2 optimizations on 32bit x86. I think you want &quot;if
&gt; PLATFORM(X86_64) || (PLATFORM(X86) &amp;&amp; PLATFORM(MAC))&quot;.
&gt; 

I have now committed this as 43439.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120548</commentid>
    <comment_count>4</comment_count>
    <who name="Sebastian">webkit</who>
    <bug_when>2009-05-10 07:31:15 -0700</bug_when>
    <thetext>Why (PLATFORM(X86) &amp;&amp; PLATFORM(MAC)) ?
According to [0] Leopard is a 64bit OS so it should be catched by X86_64. Is this a shortcut in case webkit is compiled as a 32bit lib?


[0] http://www.apple.com/macosx/technology/64bit.html</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30146</attachid>
            <date>2009-05-08 15:58:09 -0700</date>
            <delta_ts>2009-05-08 16:28:15 -0700</delta_ts>
            <desc>fix patch</desc>
            <filename>0002-JavaScriptCore-fix-complie-on-x86_64-boxes.patch</filename>
            <type>text/plain</type>
            <size>1229</size>
            <attacher name="Sebastian">webkit</attacher>
            
              <data encoding="base64">RnJvbSBhZDJjYjYyMmJhMzUyYmE2OTMzNTIwNzJlNWI2ZTY0YWJmZWQyNTc2IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBTZWJhc3RpYW4gQW5kcnplaiBTaWV3aW9yIDxzZWJhc3RpYW5A
YnJlYWtwb2ludC5jYz4KRGF0ZTogU2F0LCA5IE1heSAyMDA5IDAwOjMxOjA4ICswMjAwClN1Ympl
Y3Q6IFtQQVRDSCAyLzJdIEphdmFTY3JpcHRDb3JlOiBmaXggY29tcGxpZSBvbiB4ODZfNjQgYm94
ZXMKClRoZSBhc3NlbWJseSBjb2RlIGlzIGZ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U1NFMiBzbyB3ZSBjYW4gc2tpcCB0aGlzICAqLwogc3RhdGljIGlu
bGluZSBib29sIGlzU1NFMlByZXNlbnQoKQogewotICAgIHJldHVybiB0cnVlOyAvLyBBbGwgWDg2
IE1hY3MgYXJlIGd1YXJhbnRlZWQgdG8gc3VwcG9ydCBhdCBsZWFzdCBTU0UyCisgICAgcmV0dXJu
IHRydWU7CiB9CiAKICNlbHNlCi0tIAoxLjYuMi40Cgo=
</data>
<flag name="review"
          id="15145"
          type_id="1"
          status="-"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>