re PR target/86814 (xtensa port needs updating for CVE-2017-5753)
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 31 Dec 2018 16:51:36 +0000 (16:51 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Mon, 31 Dec 2018 16:51:36 +0000 (16:51 +0000)
PR target/86814

Xtensa architecture is not affected by speculation.

gcc/
2018-12-31  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
Define to speculation_safe_value_not_needed.

From-SVN: r267488

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index 76f3ab3d9e717a0aea3ad88079485c97f428deb9..ced3782493ad0a1df2f774ca045fcdffaf5d1c08 100644 (file)
@@ -1,3 +1,9 @@
+2018-12-31  Max Filippov  <jcmvbkbc@gmail.com>
+
+       PR target/86814
+       * config/xtensa/xtensa.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
+       Define to speculation_safe_value_not_needed.
+
 2018-12-31  Martin Liska  <mliska@suse.cz>
 
        * predict.c (set_even_probabilities): Include also
index 080bb4ad765d1916b1200c8db14e4acdb198a185..34e85dcc164a3428ae1337f527bbe2e92c15784b 100644 (file)
@@ -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;
 
 \f