From ca11b53896365c948426974cb90e8f71c70d123b Mon Sep 17 00:00:00 2001 From: Simon South Date: Sun, 31 May 2020 20:36:43 -0400 Subject: [PATCH] Guard floating-point opcodes with explicit memory barrier --- src/interp/engine/interp-inlining.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/interp/engine/interp-inlining.h b/src/interp/engine/interp-inlining.h index 3339b0e..4ee5c5a 100644 --- a/src/interp/engine/interp-inlining.h +++ b/src/interp/engine/interp-inlining.h @@ -78,8 +78,17 @@ 4.3, we need to insert a label, and ensure its address is taken (to stop it being optimised out). However, this reduces performance on PowerPC by approx 1 - 2%. + + With gcc 5 and newer an asm statement with a "memory" + clobber argument explicitly sets a memory barrier for the + compiler, preventing it from reordering memory accesses + in a way that breaks decaching. */ -#if (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) +#if (__GNUC__ > 4) +#define DEF_GUARD_TABLE(level) /* none */ +#define GUARD(opcode, level) __asm__("" ::: "memory"); +#define GUARD_TBLS /* none */ +#elif (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) #define DEF_GUARD_TABLE(level) DEF_HANDLER_TABLE(level, GUARD) #define GUARD(opcode, level) label(opcode, level, GUARD) #define GUARD_TBLS , HNDLR_TBLS(GUARD) -- 2.26.2 f5fe4ced0f01d'>commitdiff
path: root/gnu/packages/search.scm
AgeCommit message (Expand)Author
2021-10-08gnu: plocate: Update to 1.1.12....* gnu/packages/search.scm (plocate): Update to 1.1.12. Nicolas Goaziou
2021-10-08gnu: Add plocate....* gnu/packages/search.scm (plocate): New variable. Add the required imports from (guix build-system meson) and (gnu packages pkg-config). Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Alexandr Vityazev
2021-07-19gnu: Add searx....* gnu/packages/search.scm (searx): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Vinicius Monego
2021-04-27gnu: ugrep: Use GIT-FILE-NAME helper....* gnu/packages/search.scm (ugrep)[source]: Use GIT-FILE-NAME. Tobias Geerinckx-Rice
2021-04-27gnu: ugrep: Update to 3.1.12....* gnu/packages/search.scm (ugrep): Update to 3.1.12. Tobias Geerinckx-Rice
2021-04-04gnu: ugrep: Update to 3.1.11....* gnu/packages/search.scm (ugrep): Update to 3.1.11. Tobias Geerinckx-Rice