summaryrefslogtreecommitdiff
path: root/gcc/config/linux-android.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/linux-android.c')
-rw-r--r--gcc/config/linux-android.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/config/linux-android.c b/gcc/config/linux-android.c
index d6e47a70e7a..4a4b48d9882 100644
--- a/gcc/config/linux-android.c
+++ b/gcc/config/linux-android.c
@@ -31,3 +31,17 @@ linux_android_has_ifunc_p (void)
{
return TARGET_ANDROID ? false : HAVE_GNU_INDIRECT_FUNCTION;
}
+
+bool
+linux_android_libc_has_function (enum function_class fn_class)
+{
+ if (OPTION_GLIBC)
+ return true;
+ if (OPTION_BIONIC)
+ if (fn_class == function_c94
+ || fn_class == function_c99_misc
+ || fn_class == function_sincos)
+ return true;
+
+ return false;
+}