This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/9675: store-and-increment becomes increment-and-store
- From: rearnsha at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, josh at joshisanerd dot com, nobody at gcc dot gnu dot org, rjvbertin at hotmail dot com
- Date: 12 Feb 2003 18:54:38 -0000
- Subject: Re: optimization/9675: store-and-increment becomes increment-and-store
- Reply-to: rearnsha at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, josh at joshisanerd dot com, nobody at gcc dot gnu dot org, rjvbertin at hotmail dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: store-and-increment becomes increment-and-store
State-Changed-From-To: open->closed
State-Changed-By: rearnsha
State-Changed-When: Wed Feb 12 18:54:38 2003
State-Changed-Why:
Not a bug. You use and increment a variable twice in the same expression. This is undefined behaviour.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9675