From patchwork Fri May 2 08:43:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Huber X-Patchwork-Id: 344902 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4076D14012E for ; Fri, 2 May 2014 18:44:11 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=KkmFMW7SiwFt lpTiIWEvHBYAvV+ktivpjvSvB8BQw8Of97HJJcgSA/fI5IE0YzTxrxBgycDR8uLo idlaReZw6fCm3bqb6hsegiGg71yOnnmXd8zLeU7dDEpCI8r0V3FsDMpEjuqB1otp LC0gIglBcqWtU/47cQ3Joa+7hI6Tss8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=0aegDVXVolipXqujiT uoPk+b8dE=; b=K9jMWrcYffU1vqx76wnipXC9UqIXadUJofw+xrUXr8g72o2S0x O5SJ4wzDNEzEHTgmZpM49DtugEAeZgIB6S3H+mY/46y9XVl9CYOSacJdXwUAlAJm J+1uMjKvsjXfkWZglk2k1LcRx2i1c0CHkVxRhrcjHI0xwqg7FxroCX7Y0= Received: (qmail 10189 invoked by alias); 2 May 2014 08:44:04 -0000 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 Received: (qmail 10177 invoked by uid 89); 2 May 2014 08:44:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL, BAYES_00, RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: mail.embedded-brains.de Received: from host-82-135-62-35.customer.m-online.net (HELO mail.embedded-brains.de) (82.135.62.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 May 2014 08:44:01 +0000 Received: by mail.embedded-brains.de (Postfix, from userid 65534) id A6DB9652CFD; Fri, 2 May 2014 10:43:58 +0200 (CEST) Received: from linux-7i4a.eb.z (unknown [192.168.100.11]) by mail.embedded-brains.de (Postfix) with ESMTP id E0812652CFB; Fri, 2 May 2014 10:43:57 +0200 (CEST) From: Sebastian Huber To: gcc-patches@gcc.gnu.org Cc: ebotcazou@adacore.com, joel.sherrill@oarcorp.com, Sebastian Huber Subject: [PATCH] RTEMS: Adjust SPARC multilibs Date: Fri, 2 May 2014 10:43:56 +0200 Message-Id: <1399020236-2953-1-git-send-email-sebastian.huber@embedded-brains.de> X-IsSubscribed: yes A recent fix for the LEON3 support added a new option -muser-mode to select the ASI of the CASA instruction used for atomic operations. Use the user-mode CASA instruction since this works also in supervisor-mode. This patch should be applied to GCC 4.8, 4,9 and mainline. I do not have write access, so in case this gets approved, please commit it for me. gcc/ChangeLog 2014-05-02 Sebastian Huber * config/sparc/t-rtems: Use user-mode for leon3 multilibs. --- gcc/config/sparc/t-rtems | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gcc/config/sparc/t-rtems b/gcc/config/sparc/t-rtems index f1a3d84..91de612 100644 --- a/gcc/config/sparc/t-rtems +++ b/gcc/config/sparc/t-rtems @@ -17,6 +17,20 @@ # . # -MULTILIB_OPTIONS = msoft-float mcpu=v8/mcpu=leon3 -MULTILIB_DIRNAMES = soft v8 leon3 +MULTILIB_OPTIONS = msoft-float mcpu=v8/mcpu=leon3 muser-mode +MULTILIB_DIRNAMES = soft v8 leon3 user-mode MULTILIB_MATCHES = msoft-float=mno-fpu + +# Enumeration of multilibs + +MULTILIB_EXCEPTIONS += msoft-float/mcpu=v8/muser-mode +# MULTILIB_EXCEPTIONS += msoft-float/mcpu=v8 +# MULTILIB_EXCEPTIONS += msoft-float/mcpu=leon3/muser-mode +MULTILIB_EXCEPTIONS += msoft-float/mcpu=leon3 +MULTILIB_EXCEPTIONS += msoft-float/muser-mode +# MULTILIB_EXCEPTIONS += msoft-float +MULTILIB_EXCEPTIONS += mcpu=v8/muser-mode +# MULTILIB_EXCEPTIONS += mcpu=v8 +# MULTILIB_EXCEPTIONS += mcpu=leon3/muser-mode +MULTILIB_EXCEPTIONS += mcpu=leon3 +MULTILIB_EXCEPTIONS += muser-mode