From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7839 invoked by alias); 23 Nov 2011 23:37:53 -0000 Received: (qmail 7831 invoked by uid 22791); 23 Nov 2011 23:37:52 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Nov 2011 23:37:29 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pANNbQKj011539 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Nov 2011 18:37:26 -0500 Received: from anchor.twiddle.net (vpn-228-199.phx2.redhat.com [10.3.228.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pANNbPp9023640; Wed, 23 Nov 2011 18:37:26 -0500 Message-ID: <4ECD83B5.3030107@redhat.com> Date: Thu, 24 Nov 2011 01:10:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: Richard Earnshaw , ramana.radhakrishnan@arm.com Subject: Re: [cxx-mem-model 2/2] arm: Install __sync libfuncs for Linux. References: <1320362654-20244-1-git-send-email-rth@redhat.com> <1320362654-20244-3-git-send-email-rth@redhat.com> In-Reply-To: <1320362654-20244-3-git-send-email-rth@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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/msg02335.txt.bz2 Ping 2. r~ On 11/03/2011 04:24 PM, Richard Henderson wrote: > 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)