From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9jCj-0003tD-Pq for qemu-devel@nongnu.org; Thu, 28 May 2009 13:15:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9jCe-0003qc-At for qemu-devel@nongnu.org; Thu, 28 May 2009 13:15:44 -0400 Received: from [199.232.76.173] (port=48459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9jCe-0003qZ-5k for qemu-devel@nongnu.org; Thu, 28 May 2009 13:15:40 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:56917) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9jCd-00078f-H2 for qemu-devel@nongnu.org; Thu, 28 May 2009 13:15:39 -0400 From: Stefan Weil Date: Thu, 28 May 2009 19:15:34 +0200 Message-Id: <1243530934-23921-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-devel@nongnu.org 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 723de89..c81a533 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