Commit 2bf2d4d9 authored by svetozar.janjic's avatar svetozar.janjic Committed by Commit bot

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}
parent 7b49ed65
...@@ -369,7 +369,10 @@ ...@@ -369,7 +369,10 @@
'conditions': [ 'conditions': [
['v8_target_arch==target_arch and android_webview_build==0', { ['v8_target_arch==target_arch and android_webview_build==0', {
# Target built with a Mips CXX compiler. # 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'], 'ldflags': ['-EB'],
'conditions': [ 'conditions': [
[ 'v8_use_mips_abi_hardfloat=="true"', { [ 'v8_use_mips_abi_hardfloat=="true"', {
...@@ -553,7 +556,10 @@ ...@@ -553,7 +556,10 @@
'conditions': [ 'conditions': [
['v8_target_arch==target_arch and android_webview_build==0', { ['v8_target_arch==target_arch and android_webview_build==0', {
# Target built with a Mips CXX compiler. # 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'], 'ldflags': ['-EL'],
'conditions': [ 'conditions': [
[ 'v8_use_mips_abi_hardfloat=="true"', { [ 'v8_use_mips_abi_hardfloat=="true"', {
...@@ -753,7 +759,10 @@ ...@@ -753,7 +759,10 @@
['_toolset=="target"', { ['_toolset=="target"', {
'conditions': [ 'conditions': [
['v8_target_arch==target_arch and android_webview_build==0', { ['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'], 'ldflags': ['-EL'],
'conditions': [ 'conditions': [
[ 'v8_use_mips_abi_hardfloat=="true"', { [ 'v8_use_mips_abi_hardfloat=="true"', {
......
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