This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
jump after return
- From: Alain Ketterlin <alain dot ketterlin at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 12 Nov 2010 04:55:23 +0100
- Subject: 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.