Potential bug in jump optimization?
Zack Weinberg
zack@codesourcery.com
Sun Dec 21 14:47:00 GMT 2003
<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
More information about the Gcc
mailing list