From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdORV-0004fb-9Q for qemu-devel@nongnu.org; Tue, 27 Nov 2012 11:55:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdORP-0007Pq-Hf for qemu-devel@nongnu.org; Tue, 27 Nov 2012 11:55:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdORP-0007PL-AG for qemu-devel@nongnu.org; Tue, 27 Nov 2012 11:55:23 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qARGtMuA014524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Nov 2012 11:55:22 -0500 Message-ID: <50B4F078.6040902@redhat.com> Date: Tue, 27 Nov 2012 17:55:20 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1354005293-17741-1-git-send-email-pbonzini@redhat.com> <50B4E1F7.4060000@redhat.com> <87txsb56tk.fsf@blackfin.pond.sub.org> In-Reply-To: <87txsb56tk.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=ISO-8859-15 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: Markus Armbruster Cc: Avi Kivity , qemu-devel@nongnu.org Il 27/11/2012 17:49, Markus Armbruster ha scritto: >>> +%/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 > > Just append -O1 to CFLAGS; the last -O wins. But you don't want to override -O0... Anyhow, v2 was posted and does it in a different, more fine-grained manner. Paolo