From 1e9da8f6cf0d00e3492ff3a54f7a66ac107463b5 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Sat, 7 Dec 2013 08:46:58 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/alpha/linux.h | 2 +- gcc/config/linux-android.h | 2 +- gcc/config/linux-protos.h | 4 ++-- gcc/config/linux.c | 4 ++-- gcc/config/linux.h | 2 +- gcc/config/rs6000/linux.h | 2 +- gcc/config/rs6000/linux64.h | 2 +- 8 files changed, 19 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89aa2a22322f..b23d5529234d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2013-12-07 Maxim Kuvyrkov + + * 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 * linux-android.c: Rename to linux.c. diff --git a/gcc/config/alpha/linux.h b/gcc/config/alpha/linux.h index da5842fda85b..f1e058d8f39e 100644 --- a/gcc/config/alpha/linux.h +++ b/gcc/config/alpha/linux.h @@ -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 diff --git a/gcc/config/linux-android.h b/gcc/config/linux-android.h index 831a19c416e2..30ce5aef4e8f 100644 --- a/gcc/config/linux-android.h +++ b/gcc/config/linux-android.h @@ -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 diff --git a/gcc/config/linux-protos.h b/gcc/config/linux-protos.h index d1f0f9263676..cfc660ab4df5 100644 --- a/gcc/config/linux-protos.h +++ b/gcc/config/linux-protos.h @@ -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 . */ -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); diff --git a/gcc/config/linux.c b/gcc/config/linux.c index 4a4b48d9882e..40e5cbdbb03b 100644 --- a/gcc/config/linux.c +++ b/gcc/config/linux.c @@ -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; diff --git a/gcc/config/linux.h b/gcc/config/linux.h index 8116e698d945..507471be9386 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -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 diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h index f7df111b57e2..694367030df7 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -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() \ diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 66b483ec116f..1870c327da01 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -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() \ -- 2.47.2