summaryrefslogtreecommitdiff
path: root/gcc/config/linux.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-13 17:31:30 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-13 17:31:30 +0000
commit3dd775fb895cffb77ac74098a74e9fca28edaf79 (patch)
treef68062e9cfe09046337dc976767a5f7938462868 /gcc/config/linux.c
parent84014c53e113ab540befd1eceb8598d28a323ab3 (diff)
parent34a5d2a56d4b0a0ea74339c985c919aabfc530a4 (diff)
downloadgcc-3dd775fb895cffb77ac74098a74e9fca28edaf79.tar.gz
Merge in trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@205966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/linux.c')
-rw-r--r--gcc/config/linux.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/gcc/config/linux.c b/gcc/config/linux.c
new file mode 100644
index 00000000000..ffaf614bc1a
--- /dev/null
+++ b/gcc/config/linux.c
@@ -0,0 +1,47 @@
+/* Functions for Linux Android as target machine for GNU C compiler.
+ Copyright (C) 2013.
+ Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+#include "config.h"
+#include "system.h"
+#include "coretypes.h"
+#include "tm.h"
+#include "linux-protos.h"
+
+/* Android does not support GNU indirect functions. */
+
+bool
+linux_has_ifunc_p (void)
+{
+ return OPTION_BIONIC ? false : HAVE_GNU_INDIRECT_FUNCTION;
+}
+
+bool
+linux_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;
+}