https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90346
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com, | |uros at gcc dot gnu.org --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Started with r263196, where: +(define_insn "speculation_barrier" + [(unspec_volatile [(const_int 0)] UNSPECV_SPECULATION_BARRIER)] + "" + "lfence" + [(set_attr "type" "other") + (set_attr "length" "3")]) + was added. lfence is SSE2 instruction, so the question is what to for older CPUs. Does it make sense to use __builtin_speculation_safe_value for such old CPUs? Are the CPUs really affected by SPECTRE v1?