Re: [PATCH] exec: Build page-varry-common.c with -fno-lto

2021-03-22 Thread Richard Henderson
On 3/22/21 5:14 AM, Philippe Mathieu-Daudé wrote: configure| 19 --- meson.build | 18 ++- include/exec/cpu-all.h | 15 ++ include/exec/page-vary.h | 34 exec-vary.c | 108 --- page

Re: [PATCH] exec: Build page-varry-common.c with -fno-lto

2021-03-22 Thread Philippe Mathieu-Daudé
On 3/21/21 10:15 PM, Richard Henderson wrote: > In bbc17caf81f, we used an alias attribute to allow target_page > to be declared const, and yet be initialized late. > > This fails when using LTO with several versions of gcc. > The compiler looks through the alias and decides that the const > varia

Re: [PATCH] exec: Build page-varry-common.c with -fno-lto

2021-03-22 Thread Gavin Shan
On 3/22/21 8:15 AM, Richard Henderson wrote: In bbc17caf81f, we used an alias attribute to allow target_page to be declared const, and yet be initialized late. This fails when using LTO with several versions of gcc. The compiler looks through the alias and decides that the const variable is stat

[PATCH] exec: Build page-varry-common.c with -fno-lto

2021-03-21 Thread Richard Henderson
In bbc17caf81f, we used an alias attribute to allow target_page to be declared const, and yet be initialized late. This fails when using LTO with several versions of gcc. The compiler looks through the alias and decides that the const variable is statically initialized to zero, then propagates tha