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]

Re: target/10702: incorrect code generated on Sparc for expression combining increment and decrement of same variable


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


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