From c6579387bdc84adc76fbb0aa04e4942dd21d4ff0 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Mon, 31 Dec 2018 16:51:36 +0000 Subject: [PATCH] re PR target/86814 (xtensa port needs updating for CVE-2017-5753) PR target/86814 Xtensa architecture is not affected by speculation. gcc/ 2018-12-31 Max Filippov * config/xtensa/xtensa.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define to speculation_safe_value_not_needed. From-SVN: r267488 --- gcc/ChangeLog | 6 ++++++ gcc/config/xtensa/xtensa.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76f3ab3d9e7..ced3782493a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-12-31 Max Filippov + + PR target/86814 + * config/xtensa/xtensa.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): + Define to speculation_safe_value_not_needed. + 2018-12-31 Martin Liska * predict.c (set_even_probabilities): Include also diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 080bb4ad765..34e85dcc164 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -331,6 +331,9 @@ static unsigned HOST_WIDE_INT xtensa_asan_shadow_offset (void); #undef TARGET_ASAN_SHADOW_OFFSET #define TARGET_ASAN_SHADOW_OFFSET xtensa_asan_shadow_offset +#undef TARGET_HAVE_SPECULATION_SAFE_VALUE +#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed + struct gcc_target targetm = TARGET_INITIALIZER; -- 2.30.2