]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sparc,rtems: add __FIX_LEON3FT_TN0018 for affected targets
authorDaniel Hellstrom <daniel@gaisler.com>
Tue, 19 Jan 2021 09:39:51 +0000 (10:39 +0100)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 19 Jan 2021 13:00:29 +0000 (14:00 +0100)
Enable a define FIX_LEON3FT_TN0018 for the LEON3FT targets affected
by the GRLIB-TN-0018 errata described here:
  https://www.gaisler.com/notes

gcc/

* config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
built-in define __FIX_LEON3FT_TN0018.

(cherry picked from commit 4b690f161b82e428dbe648075da215daa52be0ea)

gcc/config/sparc/rtemself.h

index 6570590d64de21486c5fa095ab9b0023981797c2..ddec98c83849a6648f9585d0ce8c341cde4bd5bf 100644 (file)
@@ -33,6 +33,8 @@
        builtin_assert ("system=rtems");        \
        if (sparc_fix_b2bst)                    \
          builtin_define ("__FIX_LEON3FT_B2BST"); \
+       if (sparc_fix_gr712rc || sparc_fix_ut700 || sparc_fix_ut699) \
+         builtin_define ("__FIX_LEON3FT_TN0018"); \
     }                                          \
   while (0)