diff options
author | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-07 08:47:21 +0000 |
---|---|---|
committer | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-07 08:47:21 +0000 |
commit | 89ac5e5b6484fbebffda8c762212972a90361fad (patch) | |
tree | 4cb5f17950d5d331b440312114e361ecb5adec94 /gcc/config/moxie | |
parent | 53a2661297954f7c88bb8593f83f5a9c2c4e9df4 (diff) | |
download | gcc-89ac5e5b6484fbebffda8c762212972a90361fad.tar.gz |
Cleanup definitions of libc-related target hooks.
* config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
* config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
* config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
to linux.h.
* config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
to linux.h.
* config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
Define appropriately for Linux and uClinux targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205780 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r-- | gcc/config/moxie/uclinux.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/moxie/uclinux.h b/gcc/config/moxie/uclinux.h index fb8c92542b5..a29d38075c8 100644 --- a/gcc/config/moxie/uclinux.h +++ b/gcc/config/moxie/uclinux.h @@ -32,3 +32,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #undef TARGET_LIBC_HAS_FUNCTION #define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function + +/* Like the definition in gcc.c, but for purposes of uClinux, every link is + static. */ +#define MFWRAP_SPEC " %{fmudflap|fmudflapth: \ + --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc\ + --wrap=mmap --wrap=munmap --wrap=alloca\ + %{fmudflapth: --wrap=pthread_create\ +}} %{fmudflap|fmudflapth: --wrap=main}" |