https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64963
--- Comment #11 from Jan Hubicka <hubicka at ucw dot cz> --- > Yes it has to be fixed. For example with the kernel __kprobes attribute it > could cause a real bug (__kprobes marks function that cannot be safely > instrumented) > > We shouldn't inline over different section names either, this could also cause > problems for the same reason. Yeah, I have feeling that if clonning hurts we basically want to avoid code motion in between user named sections, including ipa-split that will take part of body and pull it out, localization and other optimizations we perform... I will take a look. Honza