This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Request: goto optimization
- To: egcs-bugs at cygnus dot com
- Subject: Request: goto optimization
- From: Bas de Bakker <basde dot bakker at pica dot nl>
- Date: Tue, 9 Dec 1997 10:25:39 +0100 (CET)
Dear egcs maintainers,
I've noticed that
extern void foo(void);
goto *&foo;
compiles to (on a Pentium)
movl $foo,%eax
jmp *%eax
instead of the more obvious
jmp foo
This may seem an unlikely construct to use, but it occurs very often
in the C code generated by the Mercury compiler.
Regards,
Bas de Bakker.