This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix target/86795 (mn10300)


AFAIK there's not enough building blocks on the mn103 series to mount a
spectre v1 attack.

Committed to the trunk.

Jeff
commit 2419ebf7b73827b1266f265b325d24c2e9daf0f1
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Aug 3 17:39:00 2018 +0000

            PR target/86795
            * config/mn10300/mn10300.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
            Define to speculation_safe_value_not_needed.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263296 138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0c4918bf1ef..0b451cef341 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2018-08-03  Jeff Law  <law@redhat.com>
+
+	PR target/86795
+	* config/mn10300/mn10300.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
+	Define to speculation_safe_value_not_needed.
+
 2018-08-03  David Malcolm  <dmalcolm@redhat.com>
 
 	* doc/gcov.texi (-x): Remove duplicate "to".
diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c
index 1247f32e3d5..a7e5e6b24f5 100644
--- a/gcc/config/mn10300/mn10300.c
+++ b/gcc/config/mn10300/mn10300.c
@@ -3437,4 +3437,7 @@ mn10300_reorg (void)
 #undef  TARGET_MODES_TIEABLE_P
 #define TARGET_MODES_TIEABLE_P mn10300_modes_tieable_p
 
+#undef  TARGET_HAVE_SPECULATION_SAFE_VALUE
+#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed
+
 struct gcc_target targetm = TARGET_INITIALIZER;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]