summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-05-05 20:21:33 -0700
committerFeng Qian <fqian@google.com>2009-05-05 20:21:33 -0700
commitfacfd1311c2e19e9c127dec59438fde7726ae29f (patch)
treea2506f7c3c671bc2162e5c1bedac9227dd071ab8
parent80c54961fb9fac04a32a62b92d078d3013997477 (diff)
downloadexternal_webkit-facfd1311c2e19e9c127dec59438fde7726ae29f.zip
external_webkit-facfd1311c2e19e9c127dec59438fde7726ae29f.tar.gz
external_webkit-facfd1311c2e19e9c127dec59438fde7726ae29f.tar.bz2
Workaround GCC 4.3.1 issue.
-fno-tree-sink disable the buggy optimization and with this option, V8 works fine. I suggested Doug Kwan to add the flag to the default build system.
-rw-r--r--v8/Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/v8/Android.mk b/v8/Android.mk
index 3111951..1e91788 100644
--- a/v8/Android.mk
+++ b/v8/Android.mk
@@ -150,11 +150,14 @@ $(GEN1): $(LOCAL_JS_LIBRARY_FILES)
python $(SCRIPT) $(GEN1) CORE $(LOCAL_JS_LIBRARY_FILES)
LOCAL_GENERATED_SOURCES += $(intermediates)/libraries.cc
+# GCC 4.3.1 has a bug that generates wrong code, -fno-tree-sink fixes the
+# issue.
LOCAL_CFLAGS += \
-Wno-endif-labels \
-Wno-import \
-Wno-format \
- -fno-exceptions
+ -fno-exceptions \
+ -fno-tree-sink
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DARM