From patchwork Fri Jul 14 09:50:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Huber X-Patchwork-Id: 788255 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 3x87HN0TWMz9s0Z for ; Fri, 14 Jul 2017 19:51:08 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Ivuk9iOp"; dkim-atps=neutral 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=hFa0ED7bS/eW djdinw1sgPQK8Yyl944f+ZoXRZvvSsTZmWGlIT4d+RtBDjPI/uuCYqO6QtGnujeK kPRRlIKeakBl52vlQEN3NEgr+MiQIXuC+94G3GBnhxGeasznm9fh3C3IXuzC1o54 tQI+dP3U/7ScjYjDiWEoXPXzSTwdTkA= 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=rb4DEMAuxvOYvuObzM TqNczBLCM=; b=Ivuk9iOpno7nRHAMohPSN/BcgcKDN/Z57egJR8SiLBxQw0g24Q 9C0pyks8gteVKxFyBYRMCA3nv41vTeVAQIIO7YFwuBJD5wJJO4ghtFfAM9kHOPR3 6qf4gpLJTBPUWEeZK2CeHwcu3/GE6EsZ1NS7f+dpjKi8LeD9mto6x7HjU= Received: (qmail 97553 invoked by alias); 14 Jul 2017 09:51:00 -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 90678 invoked by uid 89); 14 Jul 2017 09:50:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: dedi548.your-server.de Received: from dedi548.your-server.de (HELO dedi548.your-server.de) (85.10.215.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Jul 2017 09:50:53 +0000 Received: from [88.198.220.131] (helo=sslproxy02.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1dVxFK-0003kS-Mn; Fri, 14 Jul 2017 11:50:50 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy02.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dVxFJ-00088n-Qy; Fri, 14 Jul 2017 11:50:50 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 58ABE2A092A; Fri, 14 Jul 2017 11:51:07 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0Ezpl7NsrmFN; Fri, 14 Jul 2017 11:51:06 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 3143E2A1677; Fri, 14 Jul 2017 11:51:06 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tZ-7w42ZXaWB; Fri, 14 Jul 2017 11:51:06 +0200 (CEST) Received: from linux-diu0.suse (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTP id E5EEC2A092A; Fri, 14 Jul 2017 11:51:05 +0200 (CEST) From: Sebastian Huber To: gcc-patches@gcc.gnu.org Cc: software@gaisler.com Subject: [PATCH] [SPARC/RTEMS]: Add __FIX_LEON3FT_B2BST Date: Fri, 14 Jul 2017 11:50:46 +0200 Message-Id: <20170714095046.14750-1-sebastian.huber@embedded-brains.de> X-IsSubscribed: yes In case the LEON3FT back-to-back store workaround is active (sparc_fix_b2bst), then define the builtin define __FIX_LEON3FT_B2BST on RTEMS. The intended use case for this is operating system code in assembly language. See also: https://lists.rtems.org/pipermail/devel/2017-July/018463.html gcc/ * gcc/config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add conditional builtin define __FIX_LEON3FT_B2BST. --- gcc/config/sparc/rtemself.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/sparc/rtemself.h b/gcc/config/sparc/rtemself.h index e5a3f6eae03..10eaa08fe4e 100644 --- a/gcc/config/sparc/rtemself.h +++ b/gcc/config/sparc/rtemself.h @@ -26,6 +26,8 @@ along with GCC; see the file COPYING3. If not see builtin_define ("__rtems__"); \ builtin_define ("__USE_INIT_FINI__"); \ builtin_assert ("system=rtems"); \ + if (sparc_fix_b2bst) \ + builtin_define ("__FIX_LEON3FT_B2BST"); \ } \ while (0)