https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61190
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That looks like a too ugly hack. Much better is just to teach the ipa-pure-const pass about thunks IMHO, what they can and can't access.