This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/28581] Illegal loading the address of a label with -O2



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]