Fix the build with GCC 4.0.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Dec 2008 07:38:32 +0000 (07:38 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Dec 2008 07:38:32 +0000 (07:38 +0000)
Reviewed by Cameron Zwarich.

* Configurations/JavaScriptCore.xcconfig:  GCC 4.0 appears to have a bug when compiling with -funwind-tables on,
so don't use it with that compiler version.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39332 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/Configurations/JavaScriptCore.xcconfig

index 5089730..a04016e 100644 (file)
@@ -1,5 +1,14 @@
 2008-12-15  Mark Rowe  <mrowe@apple.com>
 
+        Reviewed by Cameron Zwarich.
+
+        Fix the build with GCC 4.0.
+
+        * Configurations/JavaScriptCore.xcconfig:  GCC 4.0 appears to have a bug when compiling with -funwind-tables on,
+        so don't use it with that compiler version.
+
+2008-12-15  Mark Rowe  <mrowe@apple.com>
+
         Rubber-stamped by Cameron Zwarich.
 
         <rdar://problem/6289933> Change WebKit-related projects to build with GCC 4.2 on Leopard.
index 051b872..ef199d2 100644 (file)
@@ -16,5 +16,8 @@ PRODUCT_NAME = JavaScriptCore;
 FEATURE_DEFINES = ENABLE_DATABASE ENABLE_DOM_STORAGE ENABLE_ICONDATABASE ENABLE_OFFLINE_WEB_APPLICATIONS ENABLE_SVG ENABLE_SVG_ANIMATION ENABLE_SVG_AS_IMAGE ENABLE_SVG_FONTS ENABLE_SVG_FOREIGN_OBJECT ENABLE_SVG_USE ENABLE_VIDEO ENABLE_WORKERS ENABLE_XPATH ENABLE_XSLT;
 
 OTHER_CFLAGS = $(OTHER_CFLAGS_$(CONFIGURATION)_$(CURRENT_VARIANT));
-OTHER_CFLAGS_Release_normal = -fomit-frame-pointer -funwind-tables;
-OTHER_CFLAGS_Production_normal = -fomit-frame-pointer -funwind-tables;
+OTHER_CFLAGS_Release_normal = $(OTHER_CFLAGS_normal_$(XCODE_VERSION_ACTUAL));
+OTHER_CFLAGS_Production_normal = $(OTHER_CFLAGS_normal_$(XCODE_VERSION_ACTUAL));
+OTHER_CFLAGS_normal_0310 = $(OTHER_CFLAGS_normal_GCC_42);
+OTHER_CFLAGS_normal_0320 = $(OTHER_CFLAGS_normal_GCC_42);
+OTHER_CFLAGS_normal_GCC_42 = -fomit-frame-pointer -funwind-tables;