Rename functions relating to libc support on Linux targets.

* config/linux.c (linux_android_has_ifunc_p): Rename to
	linux_has_ifunc_p.
	(linux_android_libc_has_function): Rename to linux_libc_has_function.
	* config/linux-protos.h (linux_android_has_ifunc_p,)
	(linux_android_libc_has_function): Update declarations.
	* config/linux.h, config/linux-android.h, config/alpha/linux.h,
	* config/rs6000/linux.h, config/rs6000/linux64.h: Update.

From-SVN: r205778
This commit is contained in:
Maxim Kuvyrkov 2013-12-07 08:46:58 +00:00 committed by Maxim Kuvyrkov
parent 5c0b2c6e7f
commit 1e9da8f6cf
8 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,13 @@
2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
* config/linux.c (linux_android_has_ifunc_p): Rename to
linux_has_ifunc_p.
(linux_android_libc_has_function): Rename to linux_libc_has_function.
* config/linux-protos.h (linux_android_has_ifunc_p,)
(linux_android_libc_has_function): Update declarations.
* config/linux.h, config/linux-android.h, config/alpha/linux.h,
* config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
* linux-android.c: Rename to linux.c.

View File

@ -70,7 +70,7 @@ along with GCC; see the file COPYING3. If not see
/* Determine what functions are present at the runtime;
this includes full c99 runtime and sincos. */
#undef TARGET_LIBC_HAS_FUNCTION
#define TARGET_LIBC_HAS_FUNCTION linux_android_libc_has_function
#define TARGET_LIBC_HAS_FUNCTION linux_libc_has_function
#define TARGET_POSIX_IO

View File

@ -59,4 +59,4 @@
"%{shared: crtend_so%O%s;: crtend_android%O%s}"
#undef TARGET_HAS_IFUNC_P
#define TARGET_HAS_IFUNC_P linux_android_has_ifunc_p
#define TARGET_HAS_IFUNC_P linux_has_ifunc_p

View File

@ -18,6 +18,6 @@ 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/>. */
extern bool linux_android_has_ifunc_p (void);
extern bool linux_has_ifunc_p (void);
extern bool linux_android_libc_has_function (enum function_class fn_class);
extern bool linux_libc_has_function (enum function_class fn_class);

View File

@ -27,13 +27,13 @@ along with GCC; see the file COPYING3. If not see
/* Android does not support GNU indirect functions. */
bool
linux_android_has_ifunc_p (void)
linux_has_ifunc_p (void)
{
return TARGET_ANDROID ? false : HAVE_GNU_INDIRECT_FUNCTION;
}
bool
linux_android_libc_has_function (enum function_class fn_class)
linux_libc_has_function (enum function_class fn_class)
{
if (OPTION_GLIBC)
return true;

View File

@ -102,4 +102,4 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* Determine what functions are present at the runtime;
this includes full c99 runtime and sincos. */
#undef TARGET_LIBC_HAS_FUNCTION
#define TARGET_LIBC_HAS_FUNCTION linux_android_libc_has_function
#define TARGET_LIBC_HAS_FUNCTION linux_libc_has_function

View File

@ -39,7 +39,7 @@
/* Determine what functions are present at the runtime;
this includes full c99 runtime and sincos. */
#undef TARGET_LIBC_HAS_FUNCTION
#define TARGET_LIBC_HAS_FUNCTION linux_android_libc_has_function
#define TARGET_LIBC_HAS_FUNCTION linux_libc_has_function
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \

View File

@ -312,7 +312,7 @@ extern int dot_symbols;
/* Determine what functions are present at the runtime;
this includes full c99 runtime and sincos. */
#undef TARGET_LIBC_HAS_FUNCTION
#define TARGET_LIBC_HAS_FUNCTION linux_android_libc_has_function
#define TARGET_LIBC_HAS_FUNCTION linux_libc_has_function
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \