[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimizat
From: |
Wenchao Xia |
Subject: |
Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization |
Date: |
Tue, 27 Nov 2012 17:27:44 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 |
> 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 <address@hidden>
> ---
> 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
>
In tcg case I think translate.o will influent performance obviously,
how about adding an option "fast-build" to use -O1 for it by default.
If you agree I will adding that after this patch upstream which fix
build bot failure quickly.
--
Best Regards
Wenchao Xia
Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization, Avi Kivity, 2012/11/27
[Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization, Paolo Bonzini, 2012/11/27
- Re: [Qemu-devel] [PATCH 1.3] build: compile translate.o at -O1 optimization,
Wenchao Xia <=