This is the mail archive of the gcc-patches@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]

Re: Question re: Thunks (was Re: [PATCH] - Fix PR 21956 and PR 22003)


Dale Johannesen <dalej@apple.com> writes:

> I can't see a good reason to force both to be in the same section if
> profile info shows the
> thunk is lightly executed and the main function isn't, for example.

You need to know that the jump at the end of the thunk is going to be
in range.  If the thunk is not in the same section as the branch
target, you don't know how far apart it will be.  Or you need to write
all your thunks to end with branches with unlimited range.

Ian


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