https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89125
--- Comment #11 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Fri, Feb 01, 2019 at 09:50:55PM +0000, andreast at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89125 > > --- Comment #10 from Andreas Tobler <andreast at gcc dot gnu.org> --- > I can confirm this finding with the attached patch. > There is an improvement in the gcc results but no improvement/degradation in > the other results. Tested on yesterday's trunk. > I suspect the patch should not be applied to targhook.[ch]. For freebsd, we prabably need a gcc/config/freebsd.c. This would be similar to how darwin handles the builtins on rs6000. % find config -type f | xargs grep darwin_libc_has_function darwin.c:darwin_libc_has_function (enum function_class fn_class) darwin-protos.h:extern bool darwin_libc_has_function \ (enum function_class fn_class); /rs6000/darwin.h:#define TARGET_LIBC_HAS_FUNCTION darwin_libc_has_function