From: Martin Liska Date: Mon, 20 May 2019 09:11:04 +0000 (+0200) Subject: Add missing default default_libc_has_fast_function implementation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8537d959ec434a0bd6ab8118e6701be9d847899;p=gcc.git Add missing default default_libc_has_fast_function implementation. 2019-05-20 Martin Liska * targhooks.c (default_libc_has_fast_function): New function. * targhooks.h (default_libc_has_fast_function): Likewise. From-SVN: r271401 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 68564af3dca..e07f8a11a05 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-05-20 Martin Liska + + * targhooks.c (default_libc_has_fast_function): New function. + * targhooks.h (default_libc_has_fast_function): Likewise. + 2019-05-20 Martin Liska PR middle-end/90263 diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 577e373c578..d820618b8fe 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1651,6 +1651,14 @@ default_libc_has_function (enum function_class fn_class) return false; } +/* By default assume that libc has not a fast implementation. */ + +bool +default_libc_has_fast_function (int fcode ATTRIBUTE_UNUSED) +{ + return false; +} + bool gnu_libc_has_function (enum function_class fn_class ATTRIBUTE_UNUSED) { diff --git a/gcc/targhooks.h b/gcc/targhooks.h index 59436278dcf..810c2b1f065 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -205,6 +205,7 @@ extern unsigned int default_case_values_threshold (void); extern bool default_have_conditional_execution (void); extern bool default_libc_has_function (enum function_class); +extern bool default_libc_has_fast_function (int fcode); extern bool no_c99_libc_has_function (enum function_class); extern bool gnu_libc_has_function (enum function_class);