https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118401
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > The -O1 issue might be a bug in the backend with respect to using > __builtin_return_address . And not exactly an issue with -finstrument-functions except for the fact -finstrument-functions uses __builtin_return_address (as documented).