https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-04-13 CC| |hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- There is only early inlining happening before instrumentation. I suppose we could block early inliner for functions where attribute mismatches (it would need to block itself for both -fprofile-generate and -fprofile-use). problem is that if we late inline it, we will end up with function w/o profile within function with profile, but I plan to add better support for that anyway because it happens quite frequently for comdats (where profiling is lost) and for LTO where only some units has been profiled...