]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: PR target/86776: Implement CVE-2017-5753.
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 23 Nov 2023 18:02:47 +0000 (19:02 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Thu, 23 Nov 2023 18:04:19 +0000 (19:04 +0100)
gcc/
PR target/86776
* config/avr/avr.cc (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define
to speculation_safe_value_not_needed.

gcc/config/avr/avr.cc

index c3e0995dfc3b008524cda7de26f0c86bbaf8dcfa..a297f4e092a8a89f50de0649d91f63423b4f09eb 100644 (file)
@@ -15309,6 +15309,12 @@ avr_float_lib_compare_returns_bool (machine_mode mode, enum rtx_code)
 #undef  TARGET_CANONICALIZE_COMPARISON
 #define TARGET_CANONICALIZE_COMPARISON avr_canonicalize_comparison
 
+/* According to the opening comment in PR86772, the following applies:
+  "If the port does not (and never will in the future) need to mitigate
+   against unsafe speculation."  */
+#undef  TARGET_HAVE_SPECULATION_SAFE_VALUE
+#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed
+
 struct gcc_target targetm = TARGET_INITIALIZER;
 
 \f