]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Thu, 5 Sep 2013 11:01:35 +0000 (11:01 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Thu, 5 Sep 2013 11:01:35 +0000 (11:01 +0000)
* config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
* config/rs6000/linux.h: Ditto.
* alpha/linux.h: Ditto.
* config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
no_c99_libc_has_function.
* config/c6x/uclinux-elf.h: Ditto.
* config/lm32/uclinux-elf.h: Ditto.
* config/m68k/uclinux.h: Ditto.
* config/moxie/uclinux.h: Ditto.
* config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
(crisv32-*-linux*, cris-*-linux*): Ditto.
* config/bfin/bfin.c: Include "tm_p.h".

From-SVN: r202274

gcc/ChangeLog
gcc/config.gcc
gcc/config/alpha/linux.h
gcc/config/bfin/bfin.c
gcc/config/bfin/uclinux.h
gcc/config/c6x/uclinux-elf.h
gcc/config/lm32/uclinux-elf.h
gcc/config/m68k/uclinux.h
gcc/config/moxie/uclinux.h
gcc/config/rs6000/linux.h
gcc/config/rs6000/linux64.h

index da1fbc09938789cb002c7b8fd6df1c3c9be49789..8a5743b78719ea71fdf1d9a3a21178c844061711 100644 (file)
@@ -1,3 +1,18 @@
+2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
+
+       * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
+       * config/rs6000/linux.h: Ditto.
+       * alpha/linux.h: Ditto.
+       * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
+       no_c99_libc_has_function.
+       * config/c6x/uclinux-elf.h: Ditto.
+       * config/lm32/uclinux-elf.h: Ditto.
+       * config/m68k/uclinux.h: Ditto.
+       * config/moxie/uclinux.h: Ditto.
+       * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
+       (crisv32-*-linux*, cris-*-linux*): Ditto.
+       * config/bfin/bfin.c: Include "tm_p.h".
+
 2013-09-05  Richard Biener  <rguenther@suse.de>
 
        * tree-vect-loop.c (vect_analyze_loop_operations): Properly
index eeab290d5be6c6e9a609f4fbcef24167e47cb8d7..d0cb680d04a8804fe5023a6ad9a06cf210398cf8 100644 (file)
@@ -1018,7 +1018,7 @@ bfin*-uclinux*)
        ;;
 bfin*-linux-uclibc*)
        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/linux.h ./linux-sysroot-suffix.h"
-       tmake_file="bfin/t-bfin-linux t-slibgcc"
+       tmake_file="bfin/t-bfin-linux t-slibgcc t-linux-android"
        use_collect2=no
        ;;
 bfin*-rtems*)
@@ -1053,7 +1053,7 @@ cris-*-elf | cris-*-none)
 crisv32-*-linux* | cris-*-linux*)
        tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h cris/linux.h"
        # We need to avoid using t-linux, so override default tmake_file
-       tmake_file="cris/t-cris cris/t-linux t-slibgcc"
+       tmake_file="cris/t-cris cris/t-linux t-slibgcc t-linux-android"
        extra_options="${extra_options} cris/linux.opt"
        case $target in
          cris-*-*)
index 68423c5b78159456e562bee4ce70abc0069dd145..da5842fda85b484bfb4d04466aa25dc4ba682219 100644 (file)
@@ -59,8 +59,12 @@ along with GCC; see the file COPYING3.  If not see
 
 #ifdef SINGLE_LIBC
 #define OPTION_GLIBC  (DEFAULT_LIBC == LIBC_GLIBC)
+#define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
+#define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
 #else
 #define OPTION_GLIBC  (linux_libc == LIBC_GLIBC)
+#define OPTION_UCLIBC (linux_libc == LIBC_UCLIBC)
+#define OPTION_BIONIC (linux_libc == LIBC_BIONIC)
 #endif
 
 /* Determine what functions are present at the runtime;
index 7fab975a6733685c6320d978e9d2639efc588036..18457f8f7b6b44e17a47eec207cb01918afbd8ea 100644 (file)
@@ -46,6 +46,7 @@
 #include "cgraph.h"
 #include "langhooks.h"
 #include "bfin-protos.h"
+#include "tm_p.h"
 #include "tm-preds.h"
 #include "tm-constrs.h"
 #include "gt-bfin.h"
index ca0f4ee8a35dcdcdecfd2f14485a4166f85437ec..63cba99cec6796df437e50c9bb1c2d98fec66559 100644 (file)
@@ -44,3 +44,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #define TARGET_SUPPORTS_SYNC_CALLS 1
 
 #define SUBTARGET_FDPIC_NOT_SUPPORTED
+
+#undef TARGET_LIBC_HAS_FUNCTION
+#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
index 5d61f4dc4ec6da38ecde99e0abef8353868a14c8..fa0937ed2680c29293b4fd60a2f5d610a7daefd2 100644 (file)
@@ -62,3 +62,5 @@
                    : "0" (_beg), "b" (_end), "b" (_scno));     \
 }
 
+#undef TARGET_LIBC_HAS_FUNCTION
+#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
index 3a556d7258db72fb6faef02ba14e7993dc23e146..a5e8163cf6f30a2bd08d12ac83c7b038441c61c8 100644 (file)
@@ -77,3 +77,5 @@
 #undef  CC1_SPEC
 #define CC1_SPEC "%{G*} %{!fno-PIC:-fPIC}"
 
+#undef TARGET_LIBC_HAS_FUNCTION
+#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
index 8d7431265471a1a5587f6bcbcc1881b81f7f2aa0..b1af7d2c585ca496c6c7a998c4681252b388d874 100644 (file)
@@ -67,3 +67,6 @@ along with GCC; see the file COPYING3.  If not see
    sections.  */
 #undef M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P
 #define M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P 1
+
+#undef TARGET_LIBC_HAS_FUNCTION
+#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
index 498037e80721b1139fcf12681a9e88c7010c3454..85c65f257ce6146e8371a040d1f93e239e7c9f8b 100644 (file)
@@ -37,3 +37,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
  --wrap=mmap --wrap=munmap --wrap=alloca\
  %{fmudflapth: --wrap=pthread_create\
 }} %{fmudflap|fmudflapth: --wrap=main}"
+
+#undef TARGET_LIBC_HAS_FUNCTION
+#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
index c9419424e1591891f1733afdc2aa9f42eb035f47..2e5a56b3929c8e9d34c2b535571738dd49cd3136 100644 (file)
 
 #ifdef SINGLE_LIBC
 #define OPTION_GLIBC  (DEFAULT_LIBC == LIBC_GLIBC)
+#define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
+#define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
 #else
 #define OPTION_GLIBC  (linux_libc == LIBC_GLIBC)
+#define OPTION_UCLIBC (linux_libc == LIBC_UCLIBC)
+#define OPTION_BIONIC (linux_libc == LIBC_BIONIC)
 #endif
 
 /* Determine what functions are present at the runtime;
index 63e656df15079da5616a02c9b6f04dc710a28567..439f53f2d233a1279ac10d2bca83519d3e5e8edc 100644 (file)
@@ -288,8 +288,12 @@ extern int dot_symbols;
 
 #ifdef SINGLE_LIBC
 #define OPTION_GLIBC  (DEFAULT_LIBC == LIBC_GLIBC)
+#define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
+#define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
 #else
 #define OPTION_GLIBC  (linux_libc == LIBC_GLIBC)
+#define OPTION_UCLIBC (linux_libc == LIBC_UCLIBC)
+#define OPTION_BIONIC (linux_libc == LIBC_BIONIC)
 #endif
 
 /* Determine what functions are present at the runtime;