From 1169a206dff8f7b89821d43713f69a2f6ca10d52 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 2 Aug 2018 13:30:40 +0000 Subject: [PATCH] re PR target/86791 (mcore port needs updating for CVE-2017-5753) PR target/86791 * config/mcore/mcore.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define to speculation_safe_value_not_needed. From-SVN: r263258 --- gcc/ChangeLog | 4 ++++ gcc/config/mcore/mcore.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e62b9efb2ed..0ab24b834df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -9,6 +9,10 @@ 2018-08-02 Nick Clifton + PR target/86791 + * config/mcore/mcore.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): + Define to speculation_safe_value_not_needed. + PR target/86789 * config/m32r/m32r.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define to speculation_safe_value_not_needed. diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index 88ea3ff7353..6df464d3fc5 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -253,6 +253,9 @@ static const struct attribute_spec mcore_attribute_table[] = #undef TARGET_CONSTANT_ALIGNMENT #define TARGET_CONSTANT_ALIGNMENT constant_alignment_word_strings +#undef TARGET_HAVE_SPECULATION_SAFE_VALUE +#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed + struct gcc_target targetm = TARGET_INITIALIZER; /* Adjust the stack and return the number of bytes taken to do it. */ -- 2.30.2