From 4fb75a8f4d57ddfb5c1c1e7d00e6eb1aeb671901 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 18 Sep 2016 10:26:57 -0400 Subject: [PATCH] Fix SunCC 12.3 - 12.5 crash in gcm.cpp /opt/developerstudio12.5/bin/CC -DNDEBUG -g2 -O2 -m64 -native -KPIC -template=no%extdef -c gcm.cpp assertion failed in function pr_post_process_node() @ preopt.c:3868 assert(nd_eq_(scope_first_stmt_(node), first_s)) CC: ube failed for gcm.cpp --- gcm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcm.cpp b/gcm.cpp index a5659012..e3e40466 100644 --- a/gcm.cpp +++ b/gcm.cpp @@ -94,7 +94,7 @@ __m128i _mm_clmulepi64_si128(const __m128i &a, const __m128i &b, int i) #if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE inline static void SSE2_Xor16(byte *a, const byte *b, const byte *c) { -#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE +#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && !defined(__SUNPRO_CC) CRYPTOPP_ASSERT(IsAlignedOn(a,GetAlignmentOf<__m128i>())); CRYPTOPP_ASSERT(IsAlignedOn(b,GetAlignmentOf<__m128i>())); CRYPTOPP_ASSERT(IsAlignedOn(c,GetAlignmentOf<__m128i>()));