[Bug tree-optimization/18842] Weak optimization on global references
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Mar 5 21:30:00 GMT 2006
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-03-05 21:30 -------
(In reply to comment #2)
> This is not a bug. You need IPA to figure out that y is never changed. For
> example:
>
> int x, &y = x, z;
> int bar() { y = z; }
This actually does:
*y = z; and not y = &z;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18842
More information about the Gcc-bugs
mailing list