------- Comment #8 from sparc64 at rediffmail dot com  2007-11-18 07:25 -------
Ok, Continued :

The "goto" statement works fine with optimization unless that "goto" is
needless (like "goto" to next C statement) in which case, usage of "labels" as
addresses in other places (like printf) takes a beating.

The compiler is refusing to see the usage of labels as addresses in other
places than "goto"s.  I think you call this "design". But one cant expect the
code to produce different results with "optimization" enabled. This is against
the definition of "optimization".

It would be nice if you could include a fix for this. It even helps writing
"self-modifying" code, you see. (apart from "goto"s). In fact that is when I
hit this problem.

Ofcourse, self-modifying code has other architectural limitations (like harvard
cache structure etc..). But it is upto the programmer to over-come it.

So, I would really appreciate if you can get this fixed in a future "gcc"
release.

Thank you


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28581

Reply via email to