https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110883
--- Comment #2 from 海山 <hndxvon at 163 dot com> --- (In reply to Andrew Pinski from comment #1) > autofdo is not well supported and fixes for it only made it into GCC 12 and > not GCC 10.x. > > Please try GCC 12.x or newer and report back. > > Also since you are using a redhat supplied GCC, you should have reported it > to them as mentioned in the message that outputs: > > Please submit a full bug report, > with preprocessed source if appropriate. > See <http://bugzilla.redhat.com/bugzilla> for instructions. thank you. could you list the modifying files for autofdo, not only ipa-profile.cc?