diff mbox series

sparc,rtems: add __FIX_LEON3FT_TN0018 for affected targets

Message ID 1611049191-4920-1-git-send-email-daniel@gaisler.com
State New
Headers show
Series sparc,rtems: add __FIX_LEON3FT_TN0018 for affected targets | expand

Commit Message

Daniel Hellstrom Jan. 19, 2021, 9:39 a.m. UTC
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/sparch/rtemself.h (TARGET_OS_CPP_BUILTINS): Add built-in define __FIX_LEON3FT_TN0018. 

---
 gcc/config/sparc/rtemself.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Eric Botcazou Jan. 19, 2021, 9:52 a.m. UTC | #1
>     * config/sparch/rtemself.h (TARGET_OS_CPP_BUILTINS): Add built-in define __FIX_LEON3FT_TN0018. 

OK for whichever branch(es) you deem appropriate.
Daniel Hellstrom Jan. 19, 2021, 10:19 a.m. UTC | #2
On 2021-01-19 10:52, Eric Botcazou wrote:
>>      * config/sparch/rtemself.h (TARGET_OS_CPP_BUILTINS): Add built-in define __FIX_LEON3FT_TN0018.
> OK for whichever branch(es) you deem appropriate.

GCC-10, GCC-11 and master.

Thanks,
Daniel
diff mbox series

Patch

diff --git a/gcc/config/sparc/rtemself.h b/gcc/config/sparc/rtemself.h
index 6570590..ddec98c 100644
--- a/gcc/config/sparc/rtemself.h
+++ b/gcc/config/sparc/rtemself.h
@@ -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)