public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Martin Sebor <sebor@roguewave.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c/7661: gcc-3.0 optimization bug on debian GNULinux on x86 with very simple program Date: Tue, 20 Aug 2002 14:06:00 -0000 [thread overview] Message-ID: <20020820202601.14892.qmail@sources.redhat.com> (raw) 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
next reply other threads:[~2002-08-20 20:26 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-08-20 14:06 Martin Sebor [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-08-20 18:06 Carlos O'Donell 2002-08-20 11:46 Andrew Pinski 2002-08-20 10:16 Thomas Deselaers
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020820202601.14892.qmail@sources.redhat.com \ --to=sebor@roguewave.com \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).