https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64963
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0 Summary|IPA Cloning/Splitting does |[5 Regression] IPA |not copy function section |Cloning/Splitting does not |attributes resulting in |copy function section |kernel miscompilation |attributes resulting in | |kernel miscompilation --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ah, though it seems we've actually been using the user section for the clones in the past, it is just Honza's r211363/r211365 changes (or so, r211350 works, r211400 doesn't), that broke this. So in that case it is a regression and supposedly cloning should ensure the section name is copied (which has been done automatically in the past because it was part of the FUNCTION_DECL that was copied and modified, but after moving that out into cgraph that doesn't happen anymore).