From cbdd1999daf2341b33d3ba8036fd84898e1e7c31 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 28 Nov 2012 09:40:23 +0100 Subject: build: compile translate.o with -fno-gcse option on GCC 4.6.x and 4.7.[012] These 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 this 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 Signed-off-by: Anthony Liguori --- Makefile.target | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile.target') diff --git a/Makefile.target b/Makefile.target index 8b658c0d13..927347bac2 100644 --- a/Makefile.target +++ b/Makefile.target @@ -143,6 +143,9 @@ GENERATED_HEADERS += hmp-commands.h qmp-commands-old.h endif # CONFIG_SOFTMMU +# Workaround for http://gcc.gnu.org/PR55489, see configure. +%/translate.o: QEMU_CFLAGS += $(TRANSLATE_OPT_CFLAGS) + nested-vars += obj-y # This resolves all nested paths, so it must come last -- cgit v1.2.1