From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54803 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz55c-0004a2-0J for qemu-devel@nongnu.org; Mon, 14 Mar 2011 06:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz55a-0004Gi-JT for qemu-devel@nongnu.org; Mon, 14 Mar 2011 06:33:27 -0400 Received: from mail-gy0-f173.google.com ([209.85.160.173]:49371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz55a-0004Ga-Ae for qemu-devel@nongnu.org; Mon, 14 Mar 2011 06:33:26 -0400 Received: by gyf1 with SMTP id 1so1063405gyf.4 for ; Mon, 14 Mar 2011 03:33:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20110220165637.GK18619@volta.aurel32.net> <4D621DE8.60506@redhat.com> Date: Mon, 14 Mar 2011 10:33:25 +0000 Message-ID: Subject: Re: [Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32 From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , nello martuscielli , qemu-devel@nongnu.org, Aurelien Jarno , Alexander Graf On Mon, Mar 14, 2011 at 10:23 AM, Peter Maydell wrote: > On 21 February 2011 08:10, Paolo Bonzini wrote: >> On 02/20/2011 06:32 PM, Peter Maydell wrote: >>> Some of qemu's code does seem to trigger rather excessive memory >>> use by gcc; for instance we've had problems with memory usage >>> building for ARM with gcc of target-sparc/translate.c wanting >>> gigabytes of RAM with some compiler flags: >>> https://bugs.launchpad.net/gcc-linaro/+bug/714921 >>> >>> I suspect it's all those large switch statements... >> >> It's on my todo list to report it to GCC, since this memory-hog behavior= is >> a GCC regression. > > We've been working on this in Linaro, and the following two patches > have been posted upstream: > > =A0 =A0http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00193.html > =A0 =A0http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00255.html > > so you can probably cross that item off your todo list :-) Interesting. Alexander Graf and I recently hit an out of memory when building translate.o on ppc64 host. It was solved by adding more RAM to the box but this patch looks nice too ;). Stefan