From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdNTb-00068c-AG for qemu-devel@nongnu.org; Tue, 27 Nov 2012 10:53:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdNTX-0005FI-5t for qemu-devel@nongnu.org; Tue, 27 Nov 2012 10:53:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdNTW-0005FC-UA for qemu-devel@nongnu.org; Tue, 27 Nov 2012 10:53:31 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qARFrTBT009454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Nov 2012 10:53:29 -0500 Message-ID: <50B4E1F7.4060000@redhat.com> Date: Tue, 27 Nov 2012 17:53:27 +0200 From: Avi Kivity MIME-Version: 1.0 References: <1354005293-17741-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1354005293-17741-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 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 On 11/27/2012 10:34 AM, Paolo Bonzini wrote: > 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)) > + This may change some string argument in CFLAGS, for example an argument to -I. How about: CFLAGS_opt = -O2 CFLAGS += $(CFLAGS_opt) ... %/translate.o: CFLAGS_opt = -O1 -- error compiling committee.c: too many arguments to function