From 42ec024baa1bc9de83c8fcefe543f58a6939068d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 17 Jul 2017 05:27:13 +0000 Subject: [PATCH] [SPARC/RTEMS] Add __FIX_LEON3FT_B2BST 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. From-SVN: r250254 --- gcc/ChangeLog | 5 +++++ gcc/config/sparc/rtemself.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f604f2c8a9e..672b21224c7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-17 Sebastian Huber + + * gcc/config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add + conditional builtin define __FIX_LEON3FT_B2BST. + 2017-07-17 Daniel Cederman * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace 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) -- 2.30.2