public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Guenther <richard.guenther@gmail.com>
To: Tal Agmon <tal.agmon@nsc.com>
Cc: gcc@gcc.gnu.org
Subject: Re: A gcc-cris bug?
Date: Wed, 06 Oct 2004 11:46:00 -0000	[thread overview]
Message-ID: <84fc9c00041006040512707a4a@mail.gmail.com> (raw)
In-Reply-To: <OFD0D8FF9B.79CBA202-ONC1256F25.0034722E-C1256F25.00388B12@nsc.com>

On Wed, 6 Oct 2004 12:15:27 +0200, Tal Agmon <tal.agmon@nsc.com> wrote:

> The source code is:
> ------------------------------------------------------
> #include <stdio.h>
> int foo=100;
> 
> int f ()
> {
>   foo = 0;
> }
> 
> void main ()
> {
>   int i;
> 
>   for (i = 0; i < foo; i++)
>     {
>       f ();
>     }
>   printf("foo is: %d, i is: %d\n",foo,i);
> }
> ------------------------------------------------------
> The output should be:
> 
> foo is: 0, i is: 0

no, it clearly should be

foo is: 0, i is: 1

Richard.

  reply	other threads:[~2004-10-06 11:05 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-06 11:37 Tal Agmon
2004-10-06 11:46 ` Richard Guenther [this message]
2004-10-06 12:02   ` Tal Agmon
2004-10-06 12:33     ` Dave Korn
2004-10-06 12:36       ` Andrew Pinski
2004-10-06 12:46       ` Diego Novillo
2004-10-06 12:48         ` Dave Korn
2004-10-06 13:47           ` Richard Guenther
2004-10-06 13:48             ` Andrew Pinski
2004-10-06 13:52               ` Tal Agmon
2004-10-06 13:54                 ` Richard Guenther
2004-10-06 13:56               ` Daniel Jacobowitz
2004-10-06 14:48                 ` Richard Guenther
2004-10-06 15:00                   ` Dave Korn
2004-10-06 15:21                     ` Andrew Pinski
2004-10-06 15:33                     ` Andrew Pinski
2004-10-06 15:59                       ` Dave Korn
2004-10-06 16:57                         ` Graham Stott
2004-10-06 18:22                           ` Dave Korn
2004-10-06 19:25                             ` Graham Stott
2004-10-07 10:30                               ` Paolo Bonzini
2004-10-07 10:33                                 ` Paolo Bonzini
2004-10-07 10:30                         ` Richard Guenther
2004-10-15  7:23 ` Hans-Peter Nilsson

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=84fc9c00041006040512707a4a@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=tal.agmon@nsc.com \
    /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: link
Be 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).