https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113203
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am not 100% sure if this is a bug here since you are requesting across TU always_inline but at -Og, that is basically not enabled. Maybe not use always_inline for -O0 and -Og builds?