Hi Feng, On Tue, Sep 14 2021, Feng Xue OS via Gcc wrote: > Ping again. >
I have read your email but do not have much to comment. I think that you have identified all the potential issues yourself. IIUC, I am afraid that they will mean that at least the "Typeinfo symbol resolution by linker-plugin" and "Virtual constant replacement" (but I suspect also other things you propose) will not be safe to perform by default at any optimization level save -Ofast. The cost-benefit evaluation of having it in the compiler will be difficult, but if you believe there will be users (and we will be able to document the semantics of the new options well) and the code is not very difficult to maintain, then presumably there will be no hard objections, I think. Thanks for looking into such techniques and discussing them here, Martin