diff options
-rw-r--r-- | gcc-4.4.3/gcc/config/arm/arm.c | 4 | ||||
-rw-r--r-- | gcc-4.6/gcc/config/arm/arm.c | 2 |
2 files changed, 3 insertions, 3 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) diff --git a/gcc-4.6/gcc/config/arm/arm.c b/gcc-4.6/gcc/config/arm/arm.c index 4658e6df3..2f97e5843 100644 --- a/gcc-4.6/gcc/config/arm/arm.c +++ b/gcc-4.6/gcc/config/arm/arm.c @@ -20360,7 +20360,7 @@ 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) + if (optimize && !reload_completed) { int function_length = estimate_function_length(); if (function_length < SHORTEST_FAR_JUMP_LENGTH) |