public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "amacleod at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/59767] __atomic_load_n with __ATOMIC_SEQ_CST should result in a memory barrier
Date: Mon, 06 Jul 2015 18:40:00 -0000	[thread overview]
Message-ID: <bug-59767-4-lm51PzYjIX@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59767-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59767

--- Comment #6 from Andrew Macleod <amacleod at redhat dot com> ---
The standard doesn't define what machines should generate what code. It defines
terms for observing effects that need to be adhered to. Their machine model was
created over a few years during the early stages of the memory model to help
observe and test those effects. To the best of our knowledge we think the
results from this model are an efficient and correct implementation within the
standards definition.

If you can provide a test case which demonstrates that this is not a correct
implementation based on observable effects (ie the load is observed out of
order somewhere), then we'd look at fixing it in GCC.

If you want to discuss whether parts are or aren't compliant without a test
case that fails, then you should contact the authors with your questions since
they can give you a far better answer than I ever could.


  parent reply	other threads:[~2015-07-06 18:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-11  2:09 [Bug target/59767] New: " mikulas at artax dot karlin.mff.cuni.cz
2015-07-02 16:35 ` [Bug target/59767] " jamrial at gmail dot com
2015-07-06 14:21 ` amacleod at redhat dot com
2015-07-06 15:00 ` mikulas at artax dot karlin.mff.cuni.cz
2015-07-06 16:16 ` amacleod at redhat dot com
2015-07-06 17:06 ` mikulas at artax dot karlin.mff.cuni.cz
2015-07-06 18:40 ` amacleod at redhat dot com [this message]
2015-07-06 22:36 ` torvald at gcc dot gnu.org
2015-07-09 11:40 ` amacleod at redhat dot com

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=bug-59767-4-lm51PzYjIX@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).