From 407a2d5c2c63bdc0c842ffcd57a139ef8a4f33e2 Mon Sep 17 00:00:00 2001 From: Rong Xu Date: Wed, 3 Dec 2014 10:35:10 -0800 Subject: [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 --- gcc-4.9/gcc/config/arm/arm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc-4.9/gcc/config') 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 (); } -- cgit v1.2.3