qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization
@ 2012-11-27  8:36 Paolo Bonzini
  2012-11-27  9:27 ` Wenchao Xia
  0 siblings, 1 reply; 16+ messages in thread
From: Paolo Bonzini @ 2012-11-27  8:36 UTC (permalink / raw)
  To: qemu-devel

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 <pbonzini@redhat.com>
---
 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
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization
@ 2012-11-27  8:34 Paolo Bonzini
  2012-11-27 13:24 ` Peter Maydell
  2012-11-27 15:53 ` Avi Kivity
  0 siblings, 2 replies; 16+ messages in thread
From: Paolo Bonzini @ 2012-11-27  8:34 UTC (permalink / raw)
  To: qemu-devel

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 <pbonzini@redhat.com>
---
 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
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-11-27 17:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27  8:36 [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization Paolo Bonzini
2012-11-27  9:27 ` Wenchao Xia
2012-11-27  9:37   ` Paolo Bonzini
2012-11-27 12:09     ` Gerd Hoffmann
  -- strict thread matches above, loose matches on Subject: below --
2012-11-27  8:34 Paolo Bonzini
2012-11-27 13:24 ` Peter Maydell
2012-11-27 13:45   ` Gerd Hoffmann
2012-11-27 13:46     ` Peter Maydell
2012-11-27 14:10       ` Paolo Bonzini
2012-11-27 13:49     ` 陳韋任 (Wei-Ren Chen)
2012-11-27 15:05       ` Paolo Bonzini
2012-11-27 16:24       ` Andreas Färber
2012-11-27 15:53 ` Avi Kivity
2012-11-27 16:02   ` Paolo Bonzini
2012-11-27 16:49   ` Markus Armbruster
2012-11-27 16:55     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).