This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40115] -O2 and higher causes wrong label address calculation
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2009 15:58:02 -0000
- Subject: [Bug c/40115] -O2 and higher causes wrong label address calculation
- References: <bug-40115-13529@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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