[PATCH 2/2] Disallow compiler from generating SSE instructions in mixed C+asm source

Werner Koch wk at gnupg.org
Mon Apr 27 14:05:51 CEST 2015


On Sun, 26 Apr 2015 13:47, jussi.kivilinna at iki.fi said:

> +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 404
> +/* Prevent compiler from issuing SSE instructions between asm blocks. */
> +#  pragma GCC target("no-sse")
> +#endif

What about changing this to

--8<---------------cut here---------------start------------->8---
#if _GCRY_GCC_VERSION >= 40400  /* 4.4 */
/* Prevent compiler from issuing SSE instructions between asm blocks. */
#  pragma GCC target("no-sse")
#endif
--8<---------------cut here---------------end--------------->8---


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gcrypt-devel mailing list