From 7c9f1147b866b3fec70fdce60bc37f1f4d41b330 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 2 Aug 2018 14:02:32 +0000 Subject: [PATCH] re PR target/86797 (msp430 port needs updating for CVE-2017-5753) PR target/86797 * config/msp430/msp430.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define to speculation_safe_value_not_needed. From-SVN: r263259 --- gcc/ChangeLog | 4 ++++ gcc/config/msp430/msp430.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ab24b834df..85c1ef57991 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -9,6 +9,10 @@ 2018-08-02 Nick Clifton + PR target/86797 + * config/msp430/msp430.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): + Define to speculation_safe_value_not_needed. + PR target/86791 * config/mcore/mcore.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define to speculation_safe_value_not_needed. diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c index 685bdc8f785..7d305b1bece 100644 --- a/gcc/config/msp430/msp430.c +++ b/gcc/config/msp430/msp430.c @@ -3871,6 +3871,9 @@ msp430_can_change_mode_class (machine_mode from, machine_mode to, reg_class_t) return true; } +#undef TARGET_HAVE_SPECULATION_SAFE_VALUE +#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-msp430.h" -- 2.30.2