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 optimization/14455] Structs that cannot alias are SRA'd


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


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