OSDN Git Service

w64: Use larger alignment for section with generated code
authorStefan Weil <sw@weilnetz.de>
Wed, 4 Apr 2012 05:45:21 +0000 (07:45 +0200)
committerStefan Weil <sw@weilnetz.de>
Sun, 15 Apr 2012 19:25:16 +0000 (21:25 +0200)
The MinGW-w64 compiler allows __attribute__((aligned (32)).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
exec.c

diff --git a/exec.c b/exec.c
index 3dda2ca..6d10595 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -93,8 +93,7 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED;
 #define code_gen_section                                \
     __attribute__((__section__(".gen_code")))           \
     __attribute__((aligned (32)))
-#elif defined(_WIN32)
-/* Maximum alignment for Win32 is 16. */
+#elif defined(_WIN32) && !defined(_WIN64)
 #define code_gen_section                                \
     __attribute__((aligned (16)))
 #else