I've checked in this patch to fix the c-c++-common/spec-barrier-1.c test
failure on nios2. Per previous discussions about Spectre
vulnerabilities with Altera/Intel, this architecture is not affected so
no special handling is required here.
-Sandra
2018-08-03 Sandra Loosemore <san...@codesourcery.com>
gcc/
* config/nios2/nios2.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
Define.
Index: gcc/config/nios2/nios2.c
===================================================================
--- gcc/config/nios2/nios2.c (revision 263298)
+++ gcc/config/nios2/nios2.c (working copy)
@@ -5572,6 +5572,9 @@ nios2_adjust_reg_alloc_order (void)
#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;
#include "gt-nios2.h"