ceph/patches/0010-fix-compatibility-with-CPUs-not-supporting-SSE-4.1-i.patch
Thomas Lamprecht b37e61006f normalize downstream patches
with a cycle through `git am -3 ...` in the upstream repo, `rm
*.patch` here, and `git format-patch --zero-commit --no-signature
--diff-algorithm=myers --no-numbered -o ...` in the upstream repo
again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-07-30 20:17:52 +02:00

31 lines
1.2 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Stefan Hanreich <s.hanreich@proxmox.com>
Date: Fri, 15 Sep 2023 16:55:02 +0200
Subject: [PATCH] fix compatibility with CPUs not supporting SSE 4.1
instructions
Building without -O1 causes gcc-12 to emit SSE 4.1 instructions which
are not supported on older CPU architectures. This leads to Ceph
crashing on older CPU architectures. -O1 causes those optimizations to
be implemented manually via runtime dispatch.
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
---
src/erasure-code/jerasure/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/erasure-code/jerasure/CMakeLists.txt b/src/erasure-code/jerasure/CMakeLists.txt
index f9cd22e1176..b0a355235d3 100644
--- a/src/erasure-code/jerasure/CMakeLists.txt
+++ b/src/erasure-code/jerasure/CMakeLists.txt
@@ -67,7 +67,7 @@ endif()
add_library(gf-complete_objs OBJECT ${gf-complete_srcs})
set_target_properties(gf-complete_objs PROPERTIES
- COMPILE_FLAGS "${SIMD_COMPILE_FLAGS}")
+ COMPILE_FLAGS "${SIMD_COMPILE_FLAGS} -O1")
set_target_properties(gf-complete_objs PROPERTIES
COMPILE_DEFINITIONS "${GF_COMPILE_FLAGS}")