public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: optimization/6673: gcc-3.1 produces wrong assembly code
Date: Thu, 16 May 2002 22:06:00 -0000	[thread overview]
Message-ID: <20020517050601.24339.qmail@sources.redhat.com> (raw)

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

From: Richard Henderson <rth@redhat.com>
To: Nam SungHyun <namsh@wimo.co.kr>, rth@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
   gcc-prs@gcc.gnu.org, namsh@kldp.org, nobody@gcc.gnu.org,
   gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: optimization/6673: gcc-3.1 produces wrong assembly code
Date: Thu, 16 May 2002 22:02:00 -0700

 On Fri, May 17, 2002 at 01:53:24PM +0900, Nam SungHyun wrote:
 > I saw the feed back message from the gnats web, but did not get a
 > mail. Did not know how I can reply for that feedback.
 
 The gnats bug form has an originator email address that
 it cc's all status changes on.  Did you mistype it?
 
 >     the 'a' in my example source is a 'global variable'.
 >     So, should the gcc treat it as a volatile by default?
 
 No.
 
 >     There are so many multi-threaded program. I didn't see
 >     any program which use volatile for the global variable.
 
 Nor does any C compiler produce "thread aware" code by default.
 
 You have to use cpu-specific thread synchronization primitives
 in order for that to work reliably.  Such a primitive would as
 a side effect tell the compiler that data must be committed to
 memory, which would cause 'a' to be written.
 
 You did none of these.
 
 
 r~


             reply	other threads:[~2002-05-17  5:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-16 22:06 Richard Henderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-16 22:26 Nam SungHyun
2002-05-16 21:56 Nam SungHyun
2002-05-16 19:12 rth
2002-05-16  6:40 jakub
2002-05-16  3:46 namsh

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=20020517050601.24339.qmail@sources.redhat.com \
    --to=rth@redhat.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: 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).