summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-06-18 23:04:48 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-22 10:15:31 -0500
commitf8e2af11d9aa402fedec9a604b0e952c02601889 (patch)
tree9afbc687c9c6031f51ac7d1970fdcf108ad0d2d5 /exec.c
parent8c01c95aa72a1b31ec2f70f93eb513e730b922fd (diff)
downloadqemu-f8e2af11d9aa402fedec9a604b0e952c02601889.tar.gz
Win32: Reduce section alignment for Windows.
Maximum alignment for Win32 is 16, so don't try to set it to 32. Otherwise the compiler complains: exec.c:102: warning: alignment of 'code_gen_prologue' is greater than maximum object file alignment. Using 16 Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 92ee4e2b70..688f603c7c 100644
--- a/exec.c
+++ b/exec.c
@@ -94,6 +94,10 @@ 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. */
+#define code_gen_section \
+ __attribute__((aligned (16)))
#else
#define code_gen_section \
__attribute__((aligned (32)))