w64: Use larger alignment for section with generated code

The MinGW-w64 compiler allows __attribute__((aligned (32)).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2012-04-04 07:45:21 +02:00
parent c6d506742f
commit 6840981dfb

3
exec.c
View File

@ -93,8 +93,7 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED;
#define code_gen_section \ #define code_gen_section \
__attribute__((__section__(".gen_code"))) \ __attribute__((__section__(".gen_code"))) \
__attribute__((aligned (32))) __attribute__((aligned (32)))
#elif defined(_WIN32) #elif defined(_WIN32) && !defined(_WIN64)
/* Maximum alignment for Win32 is 16. */
#define code_gen_section \ #define code_gen_section \
__attribute__((aligned (16))) __attribute__((aligned (16)))
#else #else