This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Potential bug in jump optimization?
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: <aspiesrule at mcleodusa dot net>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Sat, 20 Dec 2003 16:54:59 -0800
- Subject: Re: Potential bug in jump optimization?
<aspiesrule@mcleodusa.net> writes:
> If a move to CR0 which sets the PE bit is executed and GCC's jump optimizer
> optimizes away the far jump/call that must occur immediately afterwards, the
> resulting code can and will fail.
Bare-metal code like that belongs in handwritten assembly language
files, not in C inline asm.
This is a special case of the general rule that inline asm statements
cannot change control flow.
zw