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

Bug#63154: marked as done (gcc 2.7.2.3 optimizer bug for long long comparisons)



Your message dated Thu, 12 Apr 2001 23:52:39 +0200 (MEST)
with message-id <15062.8940.590633.88211@bolero>
and subject line closing gcc272 bugs
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.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 27 Apr 2000 16:39:15 +0000
Received: (qmail 6648 invoked from network); 27 Apr 2000 16:39:14 -0000
Received: from chiark.greenend.org.uk (mail@195.224.76.132)
  by master.debian.org with SMTP; 27 Apr 2000 16:39:14 -0000
Received: from richard by chiark.greenend.org.uk with local-bsmtp (Exim 2.05 #1)
	id 12krJo-0008Br-00 (Debian); Thu, 27 Apr 2000 17:39:12 +0100
Received: from lyonesse.relativity.greenend.org.uk [172.18.45.66] (mail)
	by sfere.greenend.org.uk with esmtp (Exim 2.05 #1 (Debian))
	id 12kqjE-0004C2-00; Thu, 27 Apr 2000 17:01:24 +0100
Received: from richard by lyonesse.relativity.greenend.org.uk with local (Exim 2.05 #1 (Debian))
	id 12kqjD-0002gR-00; Thu, 27 Apr 2000 17:01:23 +0100
From: Richard Kettlewell <rjk@sfere.greenend.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Thu, 27 Apr 2000 17:01:23 +0100 (BST)
To: submit@bugs.debian.org
Subject: gcc 2.7.2.3 optimizer bug for long long comparisons
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs  Lucid
Message-ID: <14600.24926.831843.490668@lyonesse.relativity.greenend.org.uk>
Sender: Richard Kettlewell <richard@sfere.greenend.org.uk>

Package: gcc
Version: 2.7.2.3-7

Here's my test source file:

    lyonesse$ cat t.c
    #include <limits.h>

    void tryit(long long longvalue, int boringvalue) {
	if(longvalue < LONG_MIN || longvalue > LONG_MAX)
	    abort();
    }

    main() {
	tryit(-3, 1);
	exit(0);
    }

With gcc 2.7.2.3, the optimizer gets it wrong, and so abort() is
called when it shouldn't be:

    lyonesse$ gcc -O2 -o t t.c && ./t
    Aborted (core dumped)
    lyonesse$ gcc -O1 -o t t.c && ./t
    Aborted (core dumped)
    lyonesse$ gcc -O0 -o t t.c && ./t
    lyonesse$ gcc --version
    2.7.2.3

egcs however gets it right:

    lyonesse$ egcc -O2 -o t t.c && ./t
    lyonesse$ egcc -O1 -o t t.c && ./t
    lyonesse$ egcc -O0 -o t t.c && ./t
    lyonesse$ egcc --version
    egcs-2.91.66

If the gcc 2.7 series is dead I suppose this can be fairly safely
ignored.  If it's still required for some things (linux kernel
compiles?) then it ought to be fixed however...

ttfn/rjk
---------------------------------------
Received: (at 63154-done) by bugs.debian.org; 12 Apr 2001 21:58:25 +0000
>From doko@cs.tu-berlin.de Thu Apr 12 16:58:25 2001
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 14np6d-0003Xr-00; Thu, 12 Apr 2001 16:58:24 -0500
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
	by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA08192;
	Thu, 12 Apr 2001 23:53:09 +0200 (MET DST)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.9.3+Sun/8.9.3) id XAA19323;
	Thu, 12 Apr 2001 23:52:39 +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
Date: Thu, 12 Apr 2001 23:52:39 +0200 (MEST)
To: 4429-done@bugs.debian.org, 4430-done@bugs.debian.org,
        4954-done@bugs.debian.org, 5367-done@bugs.debian.org,
        6047-done@bugs.debian.org, 12375-done@bugs.debian.org,
        20606-done@bugs.debian.org, 20889-done@bugs.debian.org,
        24788-done@bugs.debian.org, 26100-done@bugs.debian.org,
        34322-done@bugs.debian.org, 48726-done@bugs.debian.org,
        54544-done@bugs.debian.org, 63154-done@bugs.debian.org
Subject: closing gcc272 bugs
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs  Lucid
Message-ID: <15062.8940.590633.88211@bolero>
Delivered-To: 63154-done@bugs.debian.org

gcc272 (2.7.2.3-18) unstable; urgency=low

  * Close all gcc272 in the Debian bug tracking archive. The use of
    gcc272 is deprecated. The only reason it exists is to have a
    compiler for the linux kernel 2.0.x.
    The bug reports for gcc272 are still available on
    http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=gcc272&archive=yes
    Closes: #4429, #4430, 4954, #5367, #6047, #12375, #20606, #20889,
    #24788, #26100, #34322, #48726, #54544, #63154.



Reply to: