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 tree-optimization/18842] Weak optimization on global references



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


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