Suppress array bounds check for nacl build.

The NaCl and the ARM builder started failing to compile at revision 15593 with spurious array bounds warnings.

The ARM builder will be fixed by updating the cross-compiler version. Since the nacl compiler comes with the nacl toolchain, the warning will be suppressed for that builder.

See also: http://gcc.gnu.org/bugzilla/buglist.cgi?quicksearch=array%20subscript%20is%20above%20array%20bounds

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/19009003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15608 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5eb63e48
...@@ -93,4 +93,5 @@ $(NACL_MAKEFILES): ...@@ -93,4 +93,5 @@ $(NACL_MAKEFILES):
CXX=${NACL_CXX} \ CXX=${NACL_CXX} \
build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \ -Ibuild/standalone.gypi --depth=. \
-S.$(subst .,,$(suffix $@)) $(GYPFLAGS) -S.$(subst .,,$(suffix $@)) $(GYPFLAGS) \
-Dwno_array_bounds=-Wno-array-bounds
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
'werror%': '-Werror', 'werror%': '-Werror',
# For a shared library build, results in "libv8-<(soname_version).so". # For a shared library build, results in "libv8-<(soname_version).so".
'soname_version%': '', 'soname_version%': '',
# Allow to suppress the array bounds warning (default is no suppression).
'wno_array_bounds%': '',
}, },
'target_defaults': { 'target_defaults': {
'conditions': [ 'conditions': [
...@@ -465,7 +468,8 @@ ...@@ -465,7 +468,8 @@
'conditions': [ 'conditions': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
'-Wnon-virtual-dtor', '-Woverloaded-virtual' ], '-Wnon-virtual-dtor', '-Woverloaded-virtual',
'<(wno_array_bounds)' ],
'conditions': [ 'conditions': [
['v8_optimized_debug==1', { ['v8_optimized_debug==1', {
'cflags!': [ 'cflags!': [
...@@ -530,6 +534,7 @@ ...@@ -530,6 +534,7 @@
'-fdata-sections', '-fdata-sections',
'-ffunction-sections', '-ffunction-sections',
'-O3', '-O3',
'<(wno_array_bounds)',
], ],
'conditions': [ 'conditions': [
[ 'gcc_version==44 and clang==0', { [ 'gcc_version==44 and clang==0', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment