[Bug middle-end/28581] Illegal loading the address of a label with -O2
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 17 20:36:00 GMT 2007
------- Comment #6 from pinskia at gcc dot gnu dot org 2007-11-17 20:36 -------
(In reply to comment #5)
> I dont understand why this bug is invalid. When I use "&&label", I intend to
> load the address where I point to in my code -- not where the compiler wants to
> move it around.
No, this extension is not designed that way. It is only designed for computed
goto's.
Please read:
http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Labels-as-Values.html
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28581
More information about the Gcc-bugs
mailing list