diff options
author | Robert Nagy <rnagy@FreeBSD.org> | 2024-12-22 13:40:27 +0100 |
---|---|---|
committer | Robert Nagy <rnagy@FreeBSD.org> | 2024-12-22 13:40:50 +0100 |
commit | 8baca74c174b2bb5269660cbcc277c47d25a4dd3 (patch) | |
tree | 5d5f5f2893f104fcd47cdf9b56ab2b97f842f832 /www/iridium/files/patch-base_compiler__specific.h | |
parent | converters/bibtexconv: Update to 1.4.0 (diff) |
www/iridium: update to 2024.11.131.1
Diffstat (limited to 'www/iridium/files/patch-base_compiler__specific.h')
-rw-r--r-- | www/iridium/files/patch-base_compiler__specific.h | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/www/iridium/files/patch-base_compiler__specific.h b/www/iridium/files/patch-base_compiler__specific.h index 91f9e7e5bf70..a04e77d5df83 100644 --- a/www/iridium/files/patch-base_compiler__specific.h +++ b/www/iridium/files/patch-base_compiler__specific.h @@ -1,20 +1,11 @@ ---- base/compiler_specific.h.orig 2024-11-04 08:56:03 UTC +--- base/compiler_specific.h.orig 2024-12-22 12:24:29 UTC +++ base/compiler_specific.h -@@ -257,7 +257,7 @@ - // - // In some cases it's desirable to remove this, e.g. on hot functions, or if - // we have purposely changed the reference canary. --#if defined(COMPILER_GCC) || defined(__clang__) -+#if (defined(COMPILER_GCC) || defined(__clang__)) && !defined(__OpenBSD__) && !defined(__FreeBSD__) - #if HAS_ATTRIBUTE(__no_stack_protector__) - #define NO_STACK_PROTECTOR __attribute__((__no_stack_protector__)) +@@ -683,7 +683,7 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) { + #if __has_cpp_attribute(clang::preserve_most) && \ + (defined(ARCH_CPU_ARM64) || defined(ARCH_CPU_X86_64)) && \ + !defined(COMPONENT_BUILD) && \ +- !(BUILDFLAG(IS_WIN) && defined(ARCH_CPU_ARM64)) ++ !((BUILDFLAG(IS_WIN) || BUILDFLAG(IS_OPENBSD)) && defined(ARCH_CPU_ARM64)) + #define PRESERVE_MOST [[clang::preserve_most]] #else -@@ -388,7 +388,7 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) { - // See https://clang.llvm.org/docs/AttributeReference.html#preserve-most for - // more details. - #if (defined(ARCH_CPU_ARM64) || defined(ARCH_CPU_X86_64)) && \ -- !(BUILDFLAG(IS_WIN) && defined(ARCH_CPU_ARM64)) && \ -+ !((BUILDFLAG(IS_WIN) || BUILDFLAG(IS_OPENBSD)) && defined(ARCH_CPU_ARM64)) && \ - !defined(COMPONENT_BUILD) && defined(__clang__) && \ - __clang_major__ >= 17 && HAS_ATTRIBUTE(preserve_most) - #define PRESERVE_MOST __attribute__((preserve_most)) + #define PRESERVE_MOST |