From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7645 invoked by alias); 3 Nov 2011 23:25:28 -0000 Received: (qmail 7586 invoked by uid 22791); 3 Nov 2011 23:25:26 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-vw0-f47.google.com (HELO mail-vw0-f47.google.com) (209.85.212.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Nov 2011 23:24:59 +0000 Received: by vwe42 with SMTP id 42so1826204vwe.20 for ; Thu, 03 Nov 2011 16:24:58 -0700 (PDT) Received: by 10.52.69.196 with SMTP id g4mr11925330vdu.112.1320362698299; Thu, 03 Nov 2011 16:24:58 -0700 (PDT) Received: from localhost.localdomain (c-98-203-235-125.hsd1.wa.comcast.net. [98.203.235.125]) by mx.google.com with ESMTPS id i18sm10229417vdu.14.2011.11.03.16.24.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Nov 2011 16:24:57 -0700 (PDT) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [cxx-mem-model 2/2] arm: Install __sync libfuncs for Linux. Date: Thu, 03 Nov 2011 23:37:00 -0000 Message-Id: <1320362654-20244-3-git-send-email-rth@redhat.com> In-Reply-To: <1320362654-20244-1-git-send-email-rth@redhat.com> References: <1320362654-20244-1-git-send-email-rth@redhat.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00459.txt.bz2 Cc: Richard Earnshaw --- 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