On 05/05/2020 09:12, Jan Beulich wrote: > In a pure PV environment (the PV shim in particular) we don't really > need emulation of all these. To limit #ifdef-ary utilize some of the > CASE_*() macros we have, by providing variants expanding to > (effectively) nothing (really a label, which in turn requires passing > -Wno-unused-label to the compiler when build such configurations). > > Due to the mixture of macro and #ifdef use, the placement of some of > the #ifdef-s is a little arbitrary. > > The resulting object file's .text is less than half the size of the > original, and looks to also be compiling a little more quickly. > > This is meant as a first step; more parts can likely be disabled down > the road. > > Suggested-by: Andrew Cooper <[email protected]> > Signed-off-by: Jan Beulich <[email protected]> > --- > v7: Integrate into this series. Re-base. > --- > I'll be happy to take suggestions allowing to avoid -Wno-unused-label.
I already gave you one, along with a far less invasive change. It is not interesting to be able to conditionally compile these things separately. A build of Xen will either need everything, or just the integer group. ~Andrew
