From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdNuQ-0002nx-Nx for qemu-devel@nongnu.org; Tue, 27 Nov 2012 11:21:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdNuL-0004fP-Pu for qemu-devel@nongnu.org; Tue, 27 Nov 2012 11:21:18 -0500 Received: from mail-vb0-f45.google.com ([209.85.212.45]:38032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdNuL-0004fJ-JI for qemu-devel@nongnu.org; Tue, 27 Nov 2012 11:21:13 -0500 Received: by mail-vb0-f45.google.com with SMTP id p1so12437683vbi.4 for ; Tue, 27 Nov 2012 08:21:13 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 27 Nov 2012 17:21:03 +0100 Message-Id: <1354033263-32748-1-git-send-email-pbonzini@redhat.com> Subject: [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: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, kraxel@redhat.com Some versions of GCC require insane (>2GB) amounts of memory to compile translate.o. As a countermeasure, disable the culprit optimization pass. 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 with less than 2GB of memory and complain. Signed-off-by: Paolo Bonzini --- Makefile.target | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.target b/Makefile.target index 8b658c0..d38bb58 100644 --- a/Makefile.target +++ b/Makefile.target @@ -143,6 +143,12 @@ GENERATED_HEADERS += hmp-commands.h qmp-commands-old.h endif # CONFIG_SOFTMMU +# 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 += -fno-gcse + nested-vars += obj-y # This resolves all nested paths, so it must come last -- 1.8.0