public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: Richard Earnshaw <richard.earnshaw@arm.com>
Subject: [cxx-mem-model 2/2] arm: Install __sync libfuncs for Linux.
Date: Thu, 03 Nov 2011 23:37:00 -0000	[thread overview]
Message-ID: <1320362654-20244-3-git-send-email-rth@redhat.com> (raw)
In-Reply-To: <1320362654-20244-1-git-send-email-rth@redhat.com>

Cc: Richard Earnshaw <richard.earnshaw@arm.com>
---
 gcc/config/arm/arm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 5f0d562..9963faa 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -1096,6 +1096,10 @@ arm_set_fixed_conv_libfunc (convert_optab optable, enum machine_mode to,
 static void
 arm_init_libfuncs (void)
 {
+  /* For Linux, we have access to kernel support for atomic operations.  */
+  if (arm_abi == ARM_ABI_AAPCS_LINUX)
+    init_sync_libfuncs (8);
+
   /* There are no special library functions unless we are using the
      ARM BPABI.  */
   if (!TARGET_BPABI)
-- 
1.7.6.4

  parent reply	other threads:[~2011-11-03 23:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 23:27 [cxx-mem-model 0/2] Support the legacy __sync libcalls Richard Henderson
2011-11-03 23:31 ` [cxx-mem-model 1/2] Allow libcalls to be installed for legacy __sync optabs Richard Henderson
2011-11-03 23:37 ` Richard Henderson [this message]
2011-11-24  1:10   ` [cxx-mem-model 2/2] arm: Install __sync libfuncs for Linux Richard Henderson
2011-11-24 10:43     ` Richard Earnshaw
2011-11-24 20:33       ` Richard Henderson

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=1320362654-20244-3-git-send-email-rth@redhat.com \
    --to=rth@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=richard.earnshaw@arm.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).