public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Fangrui Song <maskray@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/maskray/clang] i386: Explain why __HAVE_64B_ATOMICS has to be 0
Date: Tue,  2 Nov 2021 20:00:23 +0000 (GMT)	[thread overview]
Message-ID: <20211102200023.2CF1C3858005@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cca75bd8b53b82d80299b03b368355b158832c9a

commit cca75bd8b53b82d80299b03b368355b158832c9a
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Nov 2 10:26:23 2021 +0100

    i386: Explain why __HAVE_64B_ATOMICS has to be 0

Diff:
---
 sysdeps/x86/atomic-machine.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h
index 695222e4fa..2692d94a92 100644
--- a/sysdeps/x86/atomic-machine.h
+++ b/sysdeps/x86/atomic-machine.h
@@ -60,6 +60,10 @@ typedef uintmax_t uatomic_max_t;
 # define BR_CONSTRAINT			"q"
 # define IBR_CONSTRAINT			"iq"
 #else
+/* Since the Pentium, i386 CPUs have supported 64-bit atomics, but the
+   i386 psABI supplement provides only 4-byte alignment for uint64_t
+   inside structs, so it is currently not possible to use 64-bit
+   atomics on this platform.  */
 # define __HAVE_64B_ATOMICS		0
 # define SP_REG				"esp"
 # define SEG_REG			"gs"


                 reply	other threads:[~2021-11-02 20:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20211102200023.2CF1C3858005@sourceware.org \
    --to=maskray@sourceware.org \
    --cc=glibc-cvs@sourceware.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).