diff options
author | Feng Qian <fqian@google.com> | 2009-05-05 20:21:33 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-05-05 20:21:33 -0700 |
commit | facfd1311c2e19e9c127dec59438fde7726ae29f (patch) | |
tree | a2506f7c3c671bc2162e5c1bedac9227dd071ab8 /v8 | |
parent | 80c54961fb9fac04a32a62b92d078d3013997477 (diff) | |
download | external_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.
Diffstat (limited to 'v8')
-rw-r--r-- | v8/Android.mk | 5 |
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 |