This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/38570] [arm] -mthumb generates sub-optimal prolog/epilog



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]