diff options
author | Joey Ye <joey.ye@arm.com> | 2013-04-15 07:48:28 +0000 |
---|---|---|
committer | Joey Ye <jye2@gcc.gnu.org> | 2013-04-15 07:48:28 +0000 |
commit | 5529fdd6b9e08fd5dd7cf9d8560f6cbde267cd26 (patch) | |
tree | 489ac1792fb75fb875182a62189f81ee750cadab /gcc | |
parent | 517b1da2746f0abd2151331e18673898fd8dc367 (diff) | |
download | gcc-5529fdd6b9e08fd5dd7cf9d8560f6cbde267cd26.zip gcc-5529fdd6b9e08fd5dd7cf9d8560f6cbde267cd26.tar.gz gcc-5529fdd6b9e08fd5dd7cf9d8560f6cbde267cd26.tar.bz2 |
* config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
From-SVN: r197957
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d66461..26f4608 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2013-04-15 Joey Ye <joey.ye@arm.com> + * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments. + +2013-04-15 Joey Ye <joey.ye@arm.com> + * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save for real far jump. (thumb_far_jump_used_p): Count instruction size and set diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e066784..27aa798 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) { |