]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/86805 (sh port needs updating for CVE-2017-5753)
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 28 Sep 2019 08:55:03 +0000 (08:55 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 28 Sep 2019 08:55:03 +0000 (08:55 +0000)
gcc/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/86805
* config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.

From-SVN: r276245

gcc/ChangeLog
gcc/config/sh/sh.c

index 762c2c680a61df3e5c0a1161837c05118b433da9..4b0a16e67fe2a64fff3d1e8bc193b54726bf7b5b 100644 (file)
@@ -1,3 +1,11 @@
+2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       Backport from mainline
+       2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/86805
+       * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
+
 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
 
        Backport from mainline
index 912ff97fb4e0d09cb4cbf65083abe232592f2028..08c9ffbee4fafc3ca8260efd44231e1052d16554 100644 (file)
@@ -664,6 +664,9 @@ static const struct attribute_spec sh_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;
 \f