[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#89949: marked as done ([PR optimization/3506]: weird behaviour when incrementing volatile ints)



Your message dated Mon, 27 May 2002 22:42:06 +0200
with message-id <15602.39454.927385.51398@gargle.gargle.HOWL>
and subject line bug report closed by upstream developer
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Mar 2001 01:53:08 +0000
>From herbert@gondor.apana.org.au Fri Mar 16 19:53:08 2001
Return-path: <herbert@gondor.apana.org.au>
Received: from gondor.apana.org.au [203.14.152.114] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14e5tz-0007PN-00; Fri, 16 Mar 2001 19:53:08 -0600
Received: (from herbert@localhost)
	by gondor.apana.org.au (8.11.1/8.11.1/Debian 8.11.0-6) id f2H1r2E27558;
	Sat, 17 Mar 2001 12:53:02 +1100
Date: Sat, 17 Mar 2001 12:53:02 +1100
Message-Id: <200103170153.f2H1r2E27558@gondor.apana.org.au>
From: <herbert@gondor.apana.org.au>
Subject: gcc: weird behaviour when incrementing volatile ints
To: submit@bugs.debian.org
X-Mailer: bug 3.3.9
Delivered-To: submit@bugs.debian.org

Package: gcc
Version: 1:2.95.3-5
Severity: normal

gcc generates non-intuitive code when one tries to increment a volatile int.

extern int x;
extern volatile int y;

void f() {
	x++;
	y++;
}

gives

	.file	"a.c"
	.version	"01.01"
gcc2_compiled.:
.text
	.align 4
.globl f
	.type	 f,@function
f:
	pushl %ebp
	movl %esp,%ebp
	incl x
	movl y,%eax
	incl %eax
	movl %eax,y
	leave
	ret
.Lfe1:
	.size	 f,.Lfe1-f
	.ident	"GCC: (GNU) 2.95.3 20010219 (prerelease)"

The move into %eax seems pointless.  The same thing happens with 2.97.

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux gondor 2.4.2-586tsc #20 Sat Mar 3 22:23:28 EST 2001 i586 unknown

Versions of the packages gcc depends on:
ii  cpp            2.95.3-5       The GNU C preprocessor.
ii  cpp-2.95       2.95.3-6       The GNU C preprocessor.
ii  gcc-2.95       2.95.3-6       The GNU C compiler.

---------------------------------------
Received: (at 89949-done) by bugs.debian.org; 27 May 2002 20:44:23 +0000
>From doko@cs.tu-berlin.de Mon May 27 15:44:23 2002
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17CRLr-0005hy-00; Mon, 27 May 2002 15:44:23 -0500
Received: from bolero.cs.tu-berlin.de (daemon@bolero.cs.tu-berlin.de [130.149.19.1])
	by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id WAA24482
	for <89949-done@bugs.debian.org>; Mon, 27 May 2002 22:42:07 +0200 (MET DST)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.11.6+Sun/8.9.3) id g4RKg7a23166;
	Mon, 27 May 2002 22:42:07 +0200 (MEST)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15602.39454.927385.51398@gargle.gargle.HOWL>
Date: Mon, 27 May 2002 22:42:06 +0200
To: 89949-done@bugs.debian.org
Subject: bug report closed by upstream developer
X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
Delivered-To: 89949-done@bugs.debian.org

See http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3506&database=gcc


-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: