Skip to contentSkip to conversation

More fixes for lto option

PATCH In review Wei Liu 2 participants 6 messages Dec 21, 2016 – Dec 22, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

cover More fixes for lto option

Wei Liu (2):
config/StdGNU.mk: use CONFIG_LTO
INSTALL: remove stale lto build instruction

 INSTALL          | 4 ----
 config/StdGNU.mk | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
author
#1 lore raw

PATCH 1/2 config/StdGNU.mk: use CONFIG_LTO

The lto symbol is superseded by CONFIG_LTO now.

---
Discovered while reviewing some other patches.

Cc Andrew Cooper <[email protected]>
Cc George Dunlap <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Tim Deegan <[email protected]>
Cc Wei Liu <[email protected]>
---
 config/StdGNU.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/StdGNU.mk +1 -1
index 6be8233..ed8d15e 100644
@@ -35,7 +35,7 @@ UTIL_LIBS = -lutil
 SONAME_LDFLAG = -soname
 SHLIB_LDFLAGS = -shared
 
-ifeq ($(lto),y)
+ifeq ($(CONFIG_LTO),y)
 CFLAGS += -flto
 LDFLAGS-$(clang) += -plugin LLVMgold.so
 endif
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw

Re: [PATCH 1/2] config/StdGNU.mk: use CONFIG_LTO

Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 21.12.16 at 17:44, <[email protected]> wrote:

The lto symbol is superseded by CONFIG_LTO now.

Considering that this affects both tools and hypervisor build - is that true for both? Or if it's always been meant for the hypervisor build only, should is perhaps move out of config/ at once?

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#3 lore raw

Re: [PATCH 1/2] config/StdGNU.mk: use CONFIG_LTO

Quoted 7 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 21.12.16 at 17:44, <[email protected]> wrote:

The lto symbol is superseded by CONFIG_LTO now.

Considering that this affects both tools and hypervisor build - is that true for both? Or if it's always been meant for the hypervisor build only, should is perhaps move out of config/ at once?

Did LTO ever work for tools? I'm not sure. I always thought LTO is HV only. So maybe moving out of config all together would be a better thing to do.

I will wait a bit for other people to chime in.

Wei.

Quoted 2 lines

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#4 lore raw

PATCH 2/2 INSTALL: remove stale lto build instruction

In reply to Wei Liu

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

---
 INSTALL | 4 ----
 1 file changed, 4 deletions(-)
INSTALL +0 -4
index b8d2ea4..58359da 100644
@@ -225,10 +225,6 @@ XEN_BUILD_TIME=hh:mm:ss
 SMBIOS_REL_DATE=mm/dd/yyyy
 VGABIOS_REL_DATE="dd Mon yyyy"
 
-The following variables can be used to tweak some aspects of the
-hypervisor build.
-lto=y
-
 During tools build external repos will be cloned into the source tree.
 This variable can be used to point to a different git binary to be used.
 GIT=
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel