From patchwork Fri Nov 11 23:32:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 125310 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 94F5B1007D8 for ; Sat, 12 Nov 2011 10:34:01 +1100 (EST) Received: (qmail 32526 invoked by alias); 11 Nov 2011 23:33:58 -0000 Received: (qmail 32505 invoked by uid 22791); 11 Nov 2011 23:33:57 -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:37 +0000 Received: by iahk25 with SMTP id k25so3790024iah.20 for ; Fri, 11 Nov 2011 15:33:36 -0800 (PST) Received: by 10.42.154.194 with SMTP id r2mr14445308icw.50.1321054416598; Fri, 11 Nov 2011 15:33:36 -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.35 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Nov 2011 15:33:36 -0800 (PST) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford Subject: [PATCH 2/4] mips: Install the __sync libfuncs for mips16 Date: Fri, 11 Nov 2011 15:32:12 -0800 Message-Id: <1321054334-21865-3-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 Sandiford --- gcc/config/mips/mips.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index ff72e28..75e73bd 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -11218,9 +11218,13 @@ mips_init_libfuncs (void) } /* The MIPS16 ISA does not have an encoding for "sync", so we rely - on an external non-MIPS16 routine to implement __sync_synchronize. */ + on an external non-MIPS16 routine to implement __sync_synchronize. + Similarly for the rest of the ll/sc libfuncs. */ if (TARGET_MIPS16) - synchronize_libfunc = init_one_libfunc ("__sync_synchronize"); + { + synchronize_libfunc = init_one_libfunc ("__sync_synchronize"); + init_sync_libfuncs (UNITS_PER_WORD); + } } /* Build up a multi-insn sequence that loads label TARGET into $AT. */