https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66457
--- Comment #6 from Dangyi Liu <leedypku at gmail dot com> --- (In reply to Andrew Pinski from comment #4) > Yes you don't define NO_PROFILE_COUNTERS . That is the default i386-elf > target defaults to NO_PROFILE_COUNTERS not being defined. Thank you very much!!! But I don't know how to define this macro during building phase, and I can't find any useful information using Google. Could you help me ?