* [Qemu-devel] [PATCH] Win32: Reduce section alignment for Windows.
@ 2009-06-18 21:04 Stefan Weil
2009-06-18 23:31 ` [Qemu-devel] " Consul
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2009-06-18 21:04 UTC (permalink / raw)
To: QEMU Developers
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>
---
exec.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/exec.c b/exec.c
index 92ee4e2..688f603 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)))
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] Re: [PATCH] Win32: Reduce section alignment for Windows.
2009-06-18 21:04 [Qemu-devel] [PATCH] Win32: Reduce section alignment for Windows Stefan Weil
@ 2009-06-18 23:31 ` Consul
0 siblings, 0 replies; 2+ messages in thread
From: Consul @ 2009-06-18 23:31 UTC (permalink / raw)
To: qemu-devel
Stefan Weil wrote:
> Maximum alignment for Win32 is 16, so don't try
> to set it to 32. Otherwise the compiler complains:
>
Isn't 16 enough on other platforms? For Win32 8 seems to be quite enough.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-18 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18 21:04 [Qemu-devel] [PATCH] Win32: Reduce section alignment for Windows Stefan Weil
2009-06-18 23:31 ` [Qemu-devel] " Consul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).