On Mon, Aug 10, 2020 at 9:36 AM Allan Sandfeld Jensen <li...@carewolf.com> wrote: > > Following the previous discussion, this is a proposal for a patch that adds > the flag -fno-share-inlines that can be used when compiling singular source > files with a different set of flags than the rest of the project. > > It basically turns off comdat for inline functions, as if you compiled without > support for 'weak' symbols. Turning them all into "static" functions, even if > that wouldn't normally be possible for that type of function. Not sure if it > breaks anything, which is why I am not sending it to the patch list. > > I also considered alternatively to turn the comdat generation off later during > assembler production to ensure all processing and optimization of comdat > functions would occur as normal.
We already have -fvisibility-inlines-hidden so maybe call it -fvisibility-inlines-static? Does this option also imply 'static' vtables? Richard. > Best regards > Allan