This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/21404] wrong code for array copy in while loop
- From: "janis 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 May 2005 17:50:00 -0000
- Subject: [Bug rtl-optimization/21404] wrong code for array copy in while loop
- References: <20050505171031.21404.janis@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From janis at gcc dot gnu dot org 2005-05-05 17:49 -------
A workaround is to replace the body of the loop with:
{
p[i] = q[i];
i++;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21404