From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DWs0i-0007Fq-V1 for qemu-devel@nongnu.org; Sat, 14 May 2005 04:28:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DWrgZ-0002pE-SZ for qemu-devel@nongnu.org; Sat, 14 May 2005 04:07:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWrgX-0002gH-Ju for qemu-devel@nongnu.org; Sat, 14 May 2005 04:07:45 -0400 Received: from [195.250.128.75] (helo=smtp2.vol.cz) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DWrcV-0006ed-22 for qemu-devel@nongnu.org; Sat, 14 May 2005 04:03:35 -0400 Received: from [10.0.0.2] (prg-v-6-220.static.adsl.vol.cz [62.177.70.220]) by smtp2.vol.cz (8.12.9p2/8.12.9) with ESMTP id j4E7t88T074220 for ; Sat, 14 May 2005 09:55:08 +0200 (CEST) (envelope-from navaraf@reactos.com) Message-ID: <4285AEDF.7040901@reactos.com> Date: Sat, 14 May 2005 09:55:11 +0200 From: Filip Navara MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch] gcc4 host support References: <200505112204.10204.paul@codesourcery.com> <200505121800.40417.paul@codesourcery.com> In-Reply-To: <200505121800.40417.paul@codesourcery.com> Content-Type: multipart/mixed; boundary="------------090101040106080201020704" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------090101040106080201020704 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Paul Brook wrote: >On Wednesday 11 May 2005 22:04, Paul Brook wrote: > > >>The attached patch adds support for gcc4 x86 and x86_64 hosts. >> >> > >This time with the correct patch attached. > >Paul > > In addition to this patch I also needed the attached patch to get MinGW GCC 3.4.1 builds working... - Filip --------------090101040106080201020704 Content-Type: text/x-patch; name="qemu-gcc4-mingw.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-gcc4-mingw.diff" --- dyngen.c Sat May 14 09:48:34 2005 +++ dyngen.c Sat May 14 09:37:13 2005 @@ -2255,7 +2255,8 @@ void gen_code(const char *name, host_ulo for(i = 0, sym = symtab; i < nb_syms; i++, sym++) { sym_name = get_sym_name(sym); - if (strstart(sym_name, "__op_label", &p)) { + if (strstart(sym_name, "__op_label", &p) || + strstart(sym_name, "_op_label", &p)) { uint8_t *ptr; unsigned long offset; --- exec-all.h Sat May 14 09:48:34 2005 +++ exec-all.h Sat May 14 09:37:04 2005 @@ -349,12 +349,20 @@ do {\ #else +#if __GNUC__ == 3 && __GNUC_MINOR__ < 4 +#define UNUSED __attribute__((unused)) +#elif defined(__GNUC__) +#define UNUSED __attribute__((used)) +#else +#define UNUSED +#endif + /* jump to next block operations (more portable code, does not need cache flushing, but slower because of indirect jump) */ #define GOTO_TB(opname, tbparam, n)\ do {\ - static void __attribute__((unused)) *dummy ## n = &&dummy_label ## n;\ - static void __attribute__((unused)) *__op_label ## n = &&label ## n;\ + static void UNUSED *dummy ## n = &&dummy_label ## n;\ + static void UNUSED *__op_label ## n = &&label ## n;\ goto *(void *)(((TranslationBlock *)tbparam)->tb_next[n]);\ label ## n: ;\ dummy_label ## n: ;\ --------------090101040106080201020704--