aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.3')
-rw-r--r--gcc-4.4.3/gcc/config/arm/arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc-4.4.3/gcc/config/arm/arm.c b/gcc-4.4.3/gcc/config/arm/arm.c
index 054383ca0..bef07e3d1 100644
--- a/gcc-4.4.3/gcc/config/arm/arm.c
+++ b/gcc-4.4.3/gcc/config/arm/arm.c
@@ -18526,8 +18526,8 @@ thumb_far_jump_used_p (void)
/* In reload pass we haven't got the exact jump instruction length,
but we can get a reasonable estimation based on the maximum
- possible function length. */
- if (!reload_completed)
+ possible function length. */
+ if (optimize && !reload_completed)
{
int function_length = estimate_function_length();
if (function_length < SHORTEST_FAR_JUMP_LENGTH)