This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/10702: incorrect code generated on Sparc for expression combining increment and decrement of same variable
- From: ehrhardt at mathematik dot uni-ulm dot de
- To: Raphael dot Quinet at eed dot ericsson dot se, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 9 May 2003 12:49:12 -0000
- Subject: Re: target/10702: incorrect code generated on Sparc for expression combining increment and decrement of same variable
- Reply-to: ehrhardt at mathematik dot uni-ulm dot de, Raphael dot Quinet at eed dot ericsson dot se, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: incorrect code generated on Sparc for expression combining increment and decrement of same variable
State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Fri May 9 12:49:11 2003
State-Changed-Why:
Not a bug. You're invoking undefined behaviour. There is no
sequence point beteween the two postfix operations on x, hence
there is no guarantee that the result of the first operation is written
back into x before the second operation.
regards Christian
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10702