diff mbox series

[spu,commit] Define TARGET_HAVE_SPECULATION_SAFE_VALUE

Message ID 20180806144202.99389D802B2@oc3748833570.ibm.com
State New
Headers show
Series [spu,commit] Define TARGET_HAVE_SPECULATION_SAFE_VALUE | expand

Commit Message

Ulrich Weigand Aug. 6, 2018, 2:42 p.m. UTC
Hello,

the SPU processor is not affected by speculation, so this macro can
safely be defined as speculation_safe_value_not_needed.

Committed to mainline.

Bye,
Ulrich


gcc/ChangeLog:

	PR target/86807
	* config/spu/spu.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
	Define to speculation_safe_value_not_needed.
diff mbox series

Patch

Index: config/spu/spu.c
===================================================================
--- config/spu/spu.c	(revision 263334)
+++ config/spu/spu.c	(working copy)
@@ -7463,6 +7463,9 @@  static const struct attribute_spec spu_a
 #undef TARGET_CONSTANT_ALIGNMENT
 #define TARGET_CONSTANT_ALIGNMENT spu_constant_alignment
 
+#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-spu.h"