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: Kaz Kojima <kkojima@gcc.gnu.org>
Subject: [PATCH 4/4] sh-linux: Install __sync libfuncs.
Date: Sat, 12 Nov 2011 06:47:00 -0000	[thread overview]
Message-ID: <1321054334-21865-5-git-send-email-rth@redhat.com> (raw)
In-Reply-To: <1321054334-21865-1-git-send-email-rth@redhat.com>

Cc: Kaz Kojima <kkojima@gcc.gnu.org>
---
 gcc/config/sh/linux.h |    4 ++++
 gcc/config/sh/sh.c    |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h
index edfd99b..7a75341 100644
--- a/gcc/config/sh/linux.h
+++ b/gcc/config/sh/linux.h
@@ -131,3 +131,7 @@ along with GCC; see the file COPYING3.  If not see
 #define SH_DIV_STRATEGY_DEFAULT SH_DIV_CALL2
 #undef SH_DIV_STR_FOR_SIZE
 #define SH_DIV_STR_FOR_SIZE "call2"
+
+/* Install the __sync libcalls.  */
+#undef TARGET_INIT_LIBFUNCS
+#define TARGET_INIT_LIBFUNCS  sh_init_sync_libfuncs
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 03c3c48..2545a63 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -302,6 +302,8 @@ static void sh_trampoline_init (rtx, tree, rtx);
 static rtx sh_trampoline_adjust_address (rtx);
 static void sh_conditional_register_usage (void);
 static bool sh_legitimate_constant_p (enum machine_mode, rtx);
+
+static void sh_init_sync_libfuncs (void) ATTRIBUTE_UNUSED;
 \f
 static const struct attribute_spec sh_attribute_table[] =
 {
@@ -12499,4 +12501,10 @@ sh_legitimate_constant_p (enum machine_mode mode, rtx x)
 
 enum sh_divide_strategy_e sh_div_strategy = SH_DIV_STRATEGY_DEFAULT;
 
+static void
+sh_init_sync_libfuncs (void)
+{
+  init_sync_libfuncs (UNITS_PER_WORD);
+}
+
 #include "gt-sh.h"
-- 
1.7.6.4

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

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12  2:19 [PATCH 0/4][CFT] Handle legacy __sync libcalls Richard Henderson
2011-11-12  3:12 ` [PATCH 2/4] mips: Install the __sync libfuncs for mips16 Richard Henderson
2011-11-20 22:48   ` Richard Sandiford
2011-11-12  3:56 ` [PATCH 3/4] hppa: Install __sync libfuncs for linux Richard Henderson
2011-11-13  0:43   ` Gerald Pfeifer
2011-11-13 11:34     ` Dave Anglin
2011-11-27 10:18       ` Gerald Pfeifer
2011-11-14  6:57     ` Richard Henderson
2011-11-14  7:34       ` Gerald Pfeifer
2011-11-14  7:54         ` Richard Henderson
2011-11-12  6:47 ` Richard Henderson [this message]
2011-11-12  6:47 ` [PATCH 1/4] arm: Install __sync libfuncs for Linux Richard Henderson
2011-11-14 18:52   ` David Gilbert
2011-11-14 19:51     ` Richard Henderson
2011-11-14 20:30       ` Andrew MacLeod
2011-11-14 20:17     ` Ramana Radhakrishnan
2011-11-12  8:59 ` [PATCH 0/4][CFT] Handle legacy __sync libcalls Kaz Kojima
2011-11-12 17:22   ` Richard Henderson
2011-11-12 20:42     ` Richard Henderson
2011-11-13  9:57       ` Kaz Kojima

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=1321054334-21865-5-git-send-email-rth@redhat.com \
    --to=rth@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=kkojima@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).