This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14455] Structs that cannot alias are SRA'd
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Mar 2004 04:58:38 -0000
- Subject: [Bug optimization/14455] Structs that cannot alias are SRA'd
- References: <20040306043102.14455.tjw@omnigroup.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-06 04:58 -------
here is a work around:
void foo(const Constants &C1, State &state1)
{
Constants C = C1;
State state = state1;
for (int i = 0; i < 100; i++) {
state.step(C);
}
state1 = state;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14455