Version 1.2.5.

Fixed bug in initial boundary check for Boyer-Moore text search (issue 349).

Fixed compilation issues with MinGW and gcc 4.3+ and added support for armv7 and cortex-a8 architectures.  Patches by Lei Zhang and Craig Schlenter.

Added a script cache to the debugger.

Optimized compilation performance by improving internal data structures and avoiding expensive property load optimizations for code that's infrequently executed.

Exposed the calling JavaScript context through the static API function Context::GetCalling().


git-svn-id: http://v8.googlecode.com/svn/trunk@2050 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp
index 1bae68b..050cb95 100644
--- a/tools/gyp/v8.gyp
+++ b/tools/gyp/v8.gyp
@@ -29,6 +29,7 @@
   'variables': {
     'chromium_code': 1,
     'msvs_use_common_release': 0,
+    'gcc_version%': 'unknown',
     'base_source_files': [
       '../../src/arm/assembler-arm-inl.h',
       '../../src/arm/assembler-arm.cc',
@@ -299,6 +300,18 @@
               '-fomit-frame-pointer',
               '-O3',
             ],
+            'conditions': [
+              [ 'gcc_version=="44"', {
+                'cflags': [
+                    # Avoid gcc 4.4 strict aliasing issues in dtoa.c
+                    '-fno-strict-aliasing',
+                    # Avoid gcc 4.4 mksnapshot segfault.
+                    '-fno-tree-vectorize',
+                    # Avoid crashes with gcc 4.4 in the v8 test suite.
+                    '-fno-tree-vrp',
+                ],
+              }],
+            ],
             'cflags_cc': [
               '-fno-rtti',
             ],