From 06ea2d2952bd7439de53e7bf6d74da334e951162 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 16 Jul 2015 00:50:13 -0400 Subject: [PATCH] Cleared Cygwin i386 crash at -O3 due to unaligned data access and vectorization --- config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.h b/config.h index d3bd6923..e3597290 100644 --- a/config.h +++ b/config.h @@ -33,6 +33,11 @@ // define this to retain (as much as possible) old deprecated function and class names // #define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY +// Cygwin requires aligned data acess. It vectorizes word32's on i386, too. +#if defined(__CYGWIN__) || defined(__CYGWIN32__) +# define CRYPTOPP_NO_UNALIGNED_DATA_ACCESS +#endif + #define GZIP_OS_CODE 0 // Try this if your CPU has 256K internal cache or a slow multiply instruction