From 559c31159a69162d672ddd2e0854edd623dbae52 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 16 Nov 2013 18:47:12 +0000 Subject: [PATCH] a-c.c: use GCC vector extensions only on 64-bit targets. Compiling a 32-bit NOASM build resulted in code containing a MOVAPS instruction that accessed a memory location not aligned to 16 bytes (MinGW, GCC 4.8). git-svn-id: https://svn.eduke32.com/eduke32@4162 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/a-c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/a-c.c b/polymer/eduke32/build/src/a-c.c index e904dfc97..222658644 100644 --- a/polymer/eduke32/build/src/a-c.c +++ b/polymer/eduke32/build/src/a-c.c @@ -160,7 +160,9 @@ extern int32_t vince[4]; extern intptr_t bufplce[4]; #if defined __GNUC__ && __GNUC_MINOR__ >= 7 -# define USE_VECTOR_EXT +# if defined _WIN64 || defined __amd64 || defined __x86_64 || defined __x86_64__ +# define USE_VECTOR_EXT +# endif #endif #ifdef USE_VECTOR_EXT