Received: from eggs.gnu.org ([208.118.235.92]:44649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdWyO-00011y-Db for qemu-devel@nongnu.org; Tue, 27 Nov 2012 21:02:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdWyN-0005Dr-8l for qemu-devel@nongnu.org; Tue, 27 Nov 2012 21:02:00 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:40007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdWyM-0005Dc-Nq for qemu-devel@nongnu.org; Tue, 27 Nov 2012 21:01:59 -0500 Date: Wed, 28 Nov 2012 10:01:51 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20121128020151.GA32688@cs.nctu.edu.tw> References: <1354033263-32748-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1354033263-32748-1-git-send-email-pbonzini@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 1.3] build: compile translate.o with -fno-gcse option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, kraxel@redhat.com On Tue, Nov 27, 2012 at 05:21:03PM +0100, Paolo Bonzini wrote: > Some versions of GCC require insane (>2GB) amounts of memory to compile > translate.o. As a countermeasure, disable the culprit optimization pas= s. > This should fix the buildbot failure for default_x86_64_fedora16. > Anyway is a good thing to do because people will try to compile 1.3 wit= h > less than 2GB of memory and complain. >=20 > Signed-off-by: Paolo Bonzini > --- > Makefile.target | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/Makefile.target b/Makefile.target > index 8b658c0..d38bb58 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -143,6 +143,12 @@ GENERATED_HEADERS +=3D hmp-commands.h qmp-commands= -old.h > =20 > endif # CONFIG_SOFTMMU > =20 > +# Workaround for http://gcc.gnu.org/PR55489. Happens with -fPIE/-fPIC > +# and large functions that use global variables. The bug is in all > +# releases of GCC, but it became particularly acute in 4.7.x. We > +# should be able to delete this at the end of 2013. > +%/translate.o: QEMU_CFLAGS +=3D -fno-gcse > + > nested-vars +=3D obj-y > =20 > # This resolves all nested paths, so it must come last No objection here. But will we remove this option when GCC fix this pr or we just leave it there? If we're going to remove it in the future, better keep a note on the release change log or somewhere else. Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj