https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118005
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You could put all of the internal functions in a header file which only gets included for the internal case and not install that header file ...