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
This commit is contained in:
machenbach@chromium.org 2013-07-10 16:21:17 +00:00
parent 5eb63e483d
commit 1d1b846778
2 changed files with 8 additions and 2 deletions

View File

@ -93,4 +93,5 @@ $(NACL_MAKEFILES):
CXX=${NACL_CXX} \
build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-S.$(subst .,,$(suffix $@)) $(GYPFLAGS)
-S.$(subst .,,$(suffix $@)) $(GYPFLAGS) \
-Dwno_array_bounds=-Wno-array-bounds

View File

@ -77,6 +77,9 @@
'werror%': '-Werror',
# For a shared library build, results in "libv8-<(soname_version).so".
'soname_version%': '',
# Allow to suppress the array bounds warning (default is no suppression).
'wno_array_bounds%': '',
},
'target_defaults': {
'conditions': [
@ -465,7 +468,8 @@
'conditions': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
'-Wnon-virtual-dtor', '-Woverloaded-virtual' ],
'-Wnon-virtual-dtor', '-Woverloaded-virtual',
'<(wno_array_bounds)' ],
'conditions': [
['v8_optimized_debug==1', {
'cflags!': [
@ -530,6 +534,7 @@
'-fdata-sections',
'-ffunction-sections',
'-O3',
'<(wno_array_bounds)',
],
'conditions': [
[ 'gcc_version==44 and clang==0', {