From 480c96283483897953a48cacd8356f02e690f921 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Thu, 29 Jan 2015 19:22:48 +0000 Subject: Revert "[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." This reverts commit 407a2d5c2c63bdc0c842ffcd57a139ef8a4f33e2, because https://android-review.googlesource.com/#/c/125800 provides fixes to root cause. Change-Id: I3ceda349beca8e558ccfac5602de942b9be4d31d --- gcc-4.9/gcc/config/arm/arm.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gcc-4.9') diff --git a/gcc-4.9/gcc/config/arm/arm.c b/gcc-4.9/gcc/config/arm/arm.c index 6d1eb9678..3c237cb6d 100644 --- a/gcc-4.9/gcc/config/arm/arm.c +++ b/gcc-4.9/gcc/config/arm/arm.c @@ -2852,13 +2852,6 @@ 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