From: svetozar.janjic Date: Thu, 19 Feb 2015 18:25:41 +0000 (-0800) Subject: MIPS: Silence warnings and unbreak optdebug build for target. X-Git-Tag: upstream/4.7.83~4284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bf2d4d9b6f6dbcff11e02fa636253ddd4f67a72;p=platform%2Fupstream%2Fv8.git MIPS: Silence warnings and unbreak optdebug build for target. This is a temporary workaround for bogus array-bounds warning, due to bug in MIPS toolchain versions 4.8.2 and 4.9.2. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273 TEST= BUG= Review URL: https://codereview.chromium.org/928533002 Cr-Commit-Position: refs/heads/master@{#26756} --- diff --git a/build/toolchain.gypi b/build/toolchain.gypi index dfaffd0..d4a9403 100644 --- a/build/toolchain.gypi +++ b/build/toolchain.gypi @@ -369,7 +369,10 @@ 'conditions': [ ['v8_target_arch==target_arch and android_webview_build==0', { # Target built with a Mips CXX compiler. - 'cflags': ['-EB'], + 'cflags': [ + '-EB', + '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273 + ], 'ldflags': ['-EB'], 'conditions': [ [ 'v8_use_mips_abi_hardfloat=="true"', { @@ -553,7 +556,10 @@ 'conditions': [ ['v8_target_arch==target_arch and android_webview_build==0', { # Target built with a Mips CXX compiler. - 'cflags': ['-EL'], + 'cflags': [ + '-EL', + '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273 + ], 'ldflags': ['-EL'], 'conditions': [ [ 'v8_use_mips_abi_hardfloat=="true"', { @@ -753,7 +759,10 @@ ['_toolset=="target"', { 'conditions': [ ['v8_target_arch==target_arch and android_webview_build==0', { - 'cflags': ['-EL'], + 'cflags': [ + '-EL', + '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273 + ], 'ldflags': ['-EL'], 'conditions': [ [ 'v8_use_mips_abi_hardfloat=="true"', {