This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18842] Weak optimization on global references
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2004 14:53:19 -0000
- Subject: [Bug c++/18842] Weak optimization on global references
- References: <20041205085537.18842.felix.nawothnig@t-online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2004-12-05 14:53 -------
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; }
int foo() { y = 42; }
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18842