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: "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: 5 May 2005 18:12:14 -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 pinskia at gcc dot gnu dot org 2005-05-05 18:12 -------
This is invalid, there is no sequence point between the access of i and the increment of i so either can
be first.
With -W -Wall we get a warning:
t.c:8: warning: operation on `i' may be undefined
*** This bug has been marked as a duplicate of 11751 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21404