From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHOn2-0001Hh-Q3 for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:04:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHOmy-0001G3-9Q for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:04:56 -0400 Received: from [199.232.76.173] (port=47714 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHOmy-0001Fu-6i for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:04:52 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:54712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHOmx-00018v-Go for qemu-devel@nongnu.org; Thu, 18 Jun 2009 17:04:51 -0400 From: Stefan Weil Date: Thu, 18 Jun 2009 23:04:48 +0200 Message-Id: <1245359088-28470-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] Win32: Reduce section alignment for Windows. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- 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