[Bug ipa/64963] IPA Cloning/Splitting does not copy function section attributes resulting in kernel miscompilation
jgreenhalgh at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 6 17:54:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64963
James Greenhalgh <jgreenhalgh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jgreenhalgh at gcc dot gnu.org
--- Comment #1 from James Greenhalgh <jgreenhalgh at gcc dot gnu.org> ---
Created attachment 34689
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34689&action=edit
Patch I was playing with, which breaks thunks
This patch I was playing with ensures that we copy the section attribute when
producing a specialized function, and fixes the kernel failures we've been
seeing.
However, this patch breaks a number of IPA tests (g++.dg/ipa/pr61160-*.C and
g++.dg/ipa/pr63814.C ) so I think I'm not handling thunks properly. I had a try
at fixing it, but everything I touched made things worse!
I'm sure I'm missing something obvious, so any explanation or hints you could
give towards the solution would be great!
More information about the Gcc-bugs
mailing list