aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/config
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2014-12-03 10:35:10 -0800
committerRong Xu <xur@google.com>2014-12-03 10:35:10 -0800
commit407a2d5c2c63bdc0c842ffcd57a139ef8a4f33e2 (patch)
tree9900dcf559acf240d56bf86d0a43e051efad00df /gcc-4.9/gcc/config
parent7c4814998ce1e3d250ec934b5c0ecf5ed3a017aa (diff)
downloadtoolchain_gcc-407a2d5c2c63bdc0c842ffcd57a139ef8a4f33e2.tar.gz
toolchain_gcc-407a2d5c2c63bdc0c842ffcd57a139ef8a4f33e2.tar.bz2
toolchain_gcc-407a2d5c2c63bdc0c842ffcd57a139ef8a4f33e2.zip
[4.9] Disable array bound warning in ARM
We are seeing some false positive array bound warnings due to an issue in complete unroll. This patch disables this warning so we can switch the ARM build to 4.9. Will re-enable the warning once the issue is fixed. Change-Id: Ifefe470b9e9146665e9096e5ac6f2f5fec7b9627
Diffstat (limited to 'gcc-4.9/gcc/config')
-rw-r--r--gcc-4.9/gcc/config/arm/arm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/config/arm/arm.c b/gcc-4.9/gcc/config/arm/arm.c
index 3c237cb6d..6d1eb9678 100644
--- a/gcc-4.9/gcc/config/arm/arm.c
+++ b/gcc-4.9/gcc/config/arm/arm.c
@@ -2852,6 +2852,13 @@ arm_option_override (void)
if (target_slow_flash_data)
arm_disable_literal_pool = true;
+ if (TARGET_ANDROID)
+ {
+ /* Disable array_bound warning. Work around issues
+ introduced in complete unroll. */
+ global_options.x_warn_array_bounds = 0;
+ }
+
/* Register global variables with the garbage collector. */
arm_add_gc_roots ();
}