[Bug middle-end/26187] computed goto code does not produce jumps
bje at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 9 00:38:00 GMT 2006
------- Comment #2 from bje at gcc dot gnu dot org 2006-02-09 00:38 -------
Thanks; I guess I misunderstood the semantics of computed gotos. On closer
inspection of the GCC manual,
"You may not use this mechanism to jump to code in a different function.
If you do that, totally unpredictable things will happen. The best way
to avoid this is to store the label address only in automatic variables
and never pass it as an argument."
--
bje at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26187
More information about the Gcc-bugs
mailing list