From: Bob Beck Date: Thu, 27 Nov 2025 22:17:00 +0000 (-0700) Subject: Disable clang format around multi-line macros of sparc assembly X-Git-Tag: 3.6-PRE-CLANG-FORMAT-WEBKIT~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e77c4c31227781fd9f92df0f00f41b37857bab3a;p=thirdparty%2Fopenssl.git Disable clang format around multi-line macros of sparc assembly They are not asm, but spit out stuff that is not C Clang-format gets confused and does bad things with them. Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/29243) --- diff --git a/include/crypto/sparc_arch.h b/include/crypto/sparc_arch.h index 447e715bf20..d0402193703 100644 --- a/include/crypto/sparc_arch.h +++ b/include/crypto/sparc_arch.h @@ -54,6 +54,7 @@ # define __arch64__ # endif +/* clang-format off */ # define SPARC_PIC_THUNK(reg) \ .align 32; \ .Lpic_thunk: \ @@ -74,6 +75,7 @@ or reg,%lo(_GLOBAL_OFFSET_TABLE_+4), reg; \ add %o7, reg, reg # endif +/* clang-format on */ # if defined(__arch64__) @@ -98,6 +100,7 @@ # endif +/* clang-format off */ # ifdef __PIC__ # undef SPARC_LOAD_ADDRESS # undef SPARC_LOAD_ADDRESS_LEAF @@ -114,6 +117,7 @@ SPARC_LOAD_ADDRESS(SYM, reg) \ mov tmp, %o7; # endif +/* clang-format on */ # ifndef __ASSEMBLER__ extern unsigned int OPENSSL_sparcv9cap_P[2];