From patchwork Fri Nov 11 23:32:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 125312 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 111C11007D8 for ; Sat, 12 Nov 2011 10:34:07 +1100 (EST) Received: (qmail 32599 invoked by alias); 11 Nov 2011 23:33:59 -0000 Received: (qmail 32507 invoked by uid 22791); 11 Nov 2011 23:33:58 -0000 X-SWARE-Spam-Status: No, hits=-2.4 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-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Nov 2011 23:33:36 +0000 Received: by iahk25 with SMTP id k25so3790010iah.20 for ; Fri, 11 Nov 2011 15:33:35 -0800 (PST) Received: by 10.50.216.167 with SMTP id or7mr14823000igc.22.1321054415521; Fri, 11 Nov 2011 15:33:35 -0800 (PST) Received: from localhost.localdomain (c-98-203-235-125.hsd1.wa.comcast.net. [98.203.235.125]) by mx.google.com with ESMTPS id ew6sm9832567igc.4.2011.11.11.15.33.34 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Nov 2011 15:33:34 -0800 (PST) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw , Ramana Radhakrishnan Subject: [PATCH 1/4] arm: Install __sync libfuncs for Linux. Date: Fri, 11 Nov 2011 15:32:11 -0800 Message-Id: <1321054334-21865-2-git-send-email-rth@redhat.com> In-Reply-To: <1321054334-21865-1-git-send-email-rth@redhat.com> References: <1321054334-21865-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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Cc: Ramana Radhakrishnan --- 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 6ef6f62..abf8ce1 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)