This is the mail archive of the gcc-prs@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: c/7661: gcc-3.0 optimization bug on debian GNULinux on x86 with very simple program


The following reply was made to PR c/7661; it has been noted by GNATS.

From: Martin Sebor <sebor@roguewave.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/7661: gcc-3.0 optimization bug on debian GNULinux on x86 with very simple program
Date: Tue, 20 Aug 2002 14:18:55 -0600

 Thomas Deselaers wrote:
 
 ...
 
 >>Description:
 >>
 > 
 > OK, while playing around(together with Stefan Jacobs, he wanted to be 
 > mentioned) I found out, that this small programm:
 > 
 > -------file:maxint.cc------------
 > main() {
 >       int i=0;
 >       int oldi=0;;
 >       while(++i>oldi) oldi=i;
 >       return oldi;
 > }
 > ---------------------------------
 > 
 > does work absolutely fine, when compiled without any optimization, 
 > but does not terminate at all, when using any optimization-options:
 
 
 FYI: this looks like the same thing as PR #4371, i.e., signed integer
 overflow:
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4371&database=gcc
 
 Regards
 Martin
 


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