------- Comment #7 from rearnsha at gcc dot gnu dot org 2009-05-04 09:41 ------- (In reply to comment #6) > We can compute the maximum possible function length first. If the length is > not > large enough far jump is not necessary, and we can do this optimization > safely. >
No, it's not that easy, since reload can add instructions. Realistically, there is a finite limit beyond which even reload couldn't generate sufficiently large numbers of instructions to cause failure, but it's hard to *prove* what that lower bound is. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38570