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

jump after return



When compiling at -O2 and -O3 optimization, I've found several instances of routines ending with:


retq
jmp <address-of-next-routine>

with no branch pointing to the jmp instruction. Is there any specific reason for such code? Is there a way to avoid this?

This is gcc 4.4.5, as installed on Ubuntu 10.10, compiling the SPEC OMP and CPU-2006 benchmarks.

Thanks in advance.

-- Alain.


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