Commit 78218d89 by Richard Sandiford Committed by Richard Sandiford

config.gcc (m68k-*-uclinux*): Base the port on the common and m68k GNU/Linux…

config.gcc (m68k-*-uclinux*): Base the port on the common and m68k GNU/Linux files rather than on the generic...

gcc/
	* config.gcc (m68k-*-uclinux*): Base the port on the common
	and m68k GNU/Linux files rather than on the generic ELF ones.
	* config/m68k/uclinux.h (TARGET_VERSION): Override.
	(TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.

From-SVN: r120911
parent 5189ab94
2007-01-18 Richard Sandiford <richard@codesourcery.com>
* config.gcc (m68k-*-uclinux*): Base the port on the common
and m68k GNU/Linux files rather than on the generic ELF ones.
* config/m68k/uclinux.h (TARGET_VERSION): Override.
(TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
2007-01-18 Julian Brown <julian@codesourcery.com> 2007-01-18 Julian Brown <julian@codesourcery.com>
Richard Sandiford <richard@codesourcery.com> Richard Sandiford <richard@codesourcery.com>
......
...@@ -1523,8 +1523,9 @@ m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux ...@@ -1523,8 +1523,9 @@ m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux
# with uClibc, using the new GNU/Linux-style # with uClibc, using the new GNU/Linux-style
# ABI. # ABI.
default_m68k_cpu=68020 default_m68k_cpu=68020
tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/uclinux.h" tm_file="m68k/m68k.h dbxelf.h elfos.h svr4.h linux.h m68k/linux.h m68k/uclinux.h"
tm_defines="${tm_defines} MOTOROLA USE_GAS" tm_defines="${tm_defines} MOTOROLA USE_GAS UCLIBC_DEFAULT=1"
extra_options="${extra_options} linux.opt"
tmake_file=m68k/t-uclinux tmake_file=m68k/t-uclinux
use_fixproto=no use_fixproto=no
;; ;;
......
...@@ -21,6 +21,8 @@ along with GCC; see the file COPYING. If not, write to ...@@ -21,6 +21,8 @@ along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 51 Franklin Street, Fifth Floor, the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */ Boston, MA 02110-1301, USA. */
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (68k uClinux)");
/* Undo the definition of STARTFILE_SPEC from m68kelf.h so we'll /* Undo the definition of STARTFILE_SPEC from m68kelf.h so we'll
pick the default from gcc.c (just link crt0.o from multilib dir). */ pick the default from gcc.c (just link crt0.o from multilib dir). */
...@@ -45,21 +47,14 @@ Boston, MA 02110-1301, USA. */ ...@@ -45,21 +47,14 @@ Boston, MA 02110-1301, USA. */
#undef ENDFILE_SPEC #undef ENDFILE_SPEC
#define ENDFILE_SPEC "" #define ENDFILE_SPEC ""
/* Bring in standard linux defines */
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define_std ("mc68000"); \ LINUX_TARGET_OS_CPP_BUILTINS (); \
builtin_define ("__uClinux__"); \ builtin_define ("__uClinux__"); \
builtin_define_std ("linux"); \ if (TARGET_ID_SHARED_LIBRARY) \
builtin_define_std ("unix"); \ builtin_define ("__ID_SHARED_LIBRARY__"); \
builtin_define ("__gnu_linux__"); \ } \
builtin_assert ("system=linux"); \
builtin_assert ("system=unix"); \
builtin_assert ("system=posix"); \
if (TARGET_ID_SHARED_LIBRARY) \
builtin_define ("__ID_SHARED_LIBRARY__"); \
} \
while (0) while (0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment