[Bug c/40115] -O2 and higher causes wrong label address calculation
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 12 15:58:00 GMT 2009
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-05-12 15:58 -------
The intention of address of labels is only for use of flow control and nothing
else. So taking the address of a label and using it to find the current PC is
not a valid use of this extension. This extension was not designed to be very
generic it was designed only for flow control usage with the computed goto.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40115
More information about the Gcc-bugs
mailing list