From 5529fdd6b9e08fd5dd7cf9d8560f6cbde267cd26 Mon Sep 17 00:00:00 2001 From: Joey Ye Date: Mon, 15 Apr 2013 07:48:28 +0000 Subject: [PATCH] * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments. From-SVN: r197957 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/arm.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d664610d2e..26f460878f1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-04-15 Joey Ye + + * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments. + 2013-04-15 Joey Ye * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e0667849c70..27aa7986791 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -22804,12 +22804,12 @@ thumb_far_jump_used_p (void) shorten_branch pass. So checking far_jump attribute before shorten_branch isn't much useful. - Following heuristic tries to estimate more accruately if a far jump + Following heuristic tries to estimate more accurately if a far jump may finally be used. The heuristic is very conservative as there is no chance to roll-back the decision of not to use far jump. Thumb1 long branch offset is -2048 to 2046. The worst case is each - 2-byte insn is assiociated with a 4 byte constant pool. Using + 2-byte insn is associated with a 4 byte constant pool. Using function size 2048/3 as the threshold is conservative enough. */ if (far_jump) { -- 2.30.2