ports/security/libgcrypt/files/patch-tests_basic.c
Cy Schubert c35577ebc1 security/libgcrypt: Circumvent WITH_DEBUG build failure
Register allocation exaustion results within inline assembly when
WITH_DEBUG is specified. Therefore when WITH_DEBUG is used, disable
inline assembly.

PR:		268173
Reported by:	bofh
MFH:		2022Q4
2022-12-05 11:52:37 -08:00

29 lines
668 B
C

--- tests/basic.c.orig 2021-08-22 04:56:06.000000000 -0700
+++ tests/basic.c 2022-12-05 07:46:59.768944000 -0800
@@ -38,6 +38,10 @@
#else
# define ALWAYS_INLINE
#endif
+#ifdef WITH_DEBUG
+# undef ALWAYS_INLINE
+# define ALWAYS_INLINE
+#endif
typedef struct test_spec_pubkey_key
{
@@ -214,6 +218,7 @@
}
+#ifndef WITH_DEBUG
#if defined(__x86_64__) && defined(HAVE_GCC_INLINE_ASM_SSSE3) && \
(defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) || \
defined(HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS))
@@ -233,6 +238,7 @@
defined(__ARM_NEON)
# define CLUTTER_VECTOR_REGISTER_NEON 1
# define CLUTTER_VECTOR_REGISTER_COUNT 16
+#endif
#endif