diff options
author | Joseph Myers <joseph@codesourcery.com> | 2006-02-16 23:29:10 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2006-02-16 23:29:10 +0000 |
commit | 464aea985957cde55ba4c6a3781293441b89119f (patch) | |
tree | 2c090d6408195e6db383a030c30ebbadea6777e4 /gcc/config/mips | |
parent | 6429d58f83a1ee1334942d419c078a1fcd962c18 (diff) | |
download | gcc-464aea985957cde55ba4c6a3781293441b89119f.zip gcc-464aea985957cde55ba4c6a3781293441b89119f.tar.gz gcc-464aea985957cde55ba4c6a3781293441b89119f.tar.bz2 |
re PR target/20353 (uclibc does not provide C99 math functions)
gcc:
PR target/20353
PR target/24578
PR target/24837
* config/linux.opt: New file.
* config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER): Define.
(TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
* config.gcc (*-*-linux*): Define extra_options.
(*-*-*uclibc*): Define UCLIBC_DEFAULT.
(arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
* config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
GLIBC_DYNAMIC_LINKER.
* config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
(LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
* doc/invoke.texi (GNU/Linux Options): New section.
gcc/testsuite:
* gcc.dg/builtins-config.h (HAVE_C99_RUNTIME): Don't define if
__UCLIBC__ is defined.
libstdc++-v3:
PR libstdc++/14939
* config/os/uclibc/ctype_base.h, config/os/uclibc/ctype_inline.h,
config/os/uclibc/ctype_noninline.h, config/os/uclibc/os_defines.h:
New.
* acinclude.m4 (GLIBCXX_CONFIGURE): Test whether using uClibc.
* configure.host: Use os/uclibc for uClibc.
* crossconfig.m4 (*-linux*): Use link tests. Don't hardcode
presence of math functions.
* configure: Regenerate.
From-SVN: r111160
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/linux.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index a135bba..5ed427d 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -1,5 +1,5 @@ /* Definitions for MIPS running Linux-based GNU systems with ELF format. - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. @@ -98,6 +98,8 @@ Boston, MA 02110-1301, USA. */ #undef MIPS_DEFAULT_GVALUE #define MIPS_DEFAULT_GVALUE 0 +#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1" + /* Borrowed from sparc/linux.h */ #undef LINK_SPEC #define LINK_SPEC \ @@ -107,7 +109,7 @@ Boston, MA 02110-1301, USA. */ %{!ibcs: \ %{!static: \ %{rdynamic:-export-dynamic} \ - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \ + %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \ %{static:-static}}}" #undef SUBTARGET_ASM_SPEC |