From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24708 invoked by alias); 9 May 2003 12:49:12 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24668 invoked by uid 48); 9 May 2003 12:49:12 -0000 Date: Fri, 09 May 2003 12:49:00 -0000 Message-ID: <20030509124912.24667.qmail@sources.redhat.com> To: Raphael.Quinet@eed.ericsson.se, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, Raphael.Quinet@eed.ericsson.se, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: target/10702: incorrect code generated on Sparc for expression combining increment and decrement of same variable X-SW-Source: 2003-05/txt/msg00726.txt.bz2 List-Id: 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