From c8537d959ec434a0bd6ab8118e6701be9d847899 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 20 May 2019 11:11:04 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/targhooks.c | 8 ++++++++ gcc/targhooks.h | 1 + 3 files changed, 14 insertions(+) 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); -- 2.30.2