From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdHU1-0007Gk-6I for qemu-devel@nongnu.org; Tue, 27 Nov 2012 04:29:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdHTv-0005Ig-CY for qemu-devel@nongnu.org; Tue, 27 Nov 2012 04:29:37 -0500 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:38880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdHTu-0005IZ-Qw for qemu-devel@nongnu.org; Tue, 27 Nov 2012 04:29:31 -0500 Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Nov 2012 19:28:16 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAR9TIjX45154362 for ; Tue, 27 Nov 2012 20:29:19 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAR9TIEm016693 for ; Tue, 27 Nov 2012 20:29:18 +1100 Message-ID: <50B48790.8030705@linux.vnet.ibm.com> Date: Tue, 27 Nov 2012 17:27:44 +0800 From: Wenchao Xia MIME-Version: 1.0 References: <1354005361-17805-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1354005361-17805-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org > Some versions of GCC require insane (>2GB) amounts of memory > to compile translate.o. As a countermeasure, compile it > with -O1. This should fix the buildbot failure for > default_x86_64_fedora16. > > Signed-off-by: Paolo Bonzini > --- > Makefile.target | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Makefile.target b/Makefile.target > index 8b658c0..3981931 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -143,6 +143,8 @@ GENERATED_HEADERS += hmp-commands.h qmp-commands-old.h > > endif # CONFIG_SOFTMMU > > +%/translate.o: CFLAGS := $(patsubst -O2,-O1,$(CFLAGS)) > + > nested-vars += obj-y > > # This resolves all nested paths, so it must come last > In tcg case I think translate.o will influent performance obviously, how about adding an option "fast-build" to use -O1 for it by default. If you agree I will adding that after this patch upstream which fix build bot failure quickly. -- Best Regards Wenchao Xia