aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-17 05:27:13 +0000
committerSebastian Huber <sh@gcc.gnu.org>2017-07-17 05:27:13 +0000
commit42ec024baa1bc9de83c8fcefe543f58a6939068d (patch)
tree08a20f287b6fd27cdd9022efe1f579cabc76790c /gcc/config/sparc
parentecaf6857a76203ffa7617131cfd09a567cb81e99 (diff)
downloadgcc-42ec024baa1bc9de83c8fcefe543f58a6939068d.zip
gcc-42ec024baa1bc9de83c8fcefe543f58a6939068d.tar.gz
gcc-42ec024baa1bc9de83c8fcefe543f58a6939068d.tar.bz2
[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
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r--gcc/config/sparc/rtemself.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/sparc/rtemself.h b/gcc/config/sparc/rtemself.h
index e5a3f6e..10eaa08 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)