From: Nathan Sidwell Date: Mon, 7 Jul 2008 11:14:37 +0000 (+0000) Subject: config.gcc (m68k-*-linux*): Add with_arch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=368b55f6b083a01df284be8d536b4977da612894;p=gcc.git config.gcc (m68k-*-linux*): Add with_arch. * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to tmake_file. * config/m68k/t-linux: New. * doc/install.texi: Document m68k-*-linux is now multilibbed by default. From-SVN: r137557 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2f51dfc6459..a8b6c4a119e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,19 @@ +2008-07-07 Maxim Kuvyrkov + Nathan Sidwell + + * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h + to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to + tmake_file. + * config/m68k/t-linux: New. + * doc/install.texi: Document m68k-*-linux is now multilibbed by + default. + +2008-07-07 Nathan Sidwell + + * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac. + * config/m68k/m68k-devices.def: Remove multilibs that only differ + by MAC/EMAC. + 2008-07-06 Kaveh R. Ghazi * gcc.c (execute): Fix -Wc++-compat warning. diff --git a/gcc/config.gcc b/gcc/config.gcc index eda28121204..e73223b9b32 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1459,9 +1459,11 @@ m68k-*-linux*) # Motorola m68k's running GNU/Linux # aka the GNU/Linux C library 6. default_m68k_cpu=68020 default_cf_cpu=5475 - tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h m68k/linux.h" + with_arch=${with_arch:-m68k} + tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h m68k/linux.h ./sysroot-suffix.h" extra_options="${extra_options} m68k/ieee.opt" tm_defines="${tm_defines} MOTOROLA=1" + tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs" # if not configured with --enable-sjlj-exceptions, bump the # libgcc version number if test x$sjlj != x1; then diff --git a/gcc/config/m68k/t-linux b/gcc/config/m68k/t-linux new file mode 100644 index 00000000000..f46d3a873d5 --- /dev/null +++ b/gcc/config/m68k/t-linux @@ -0,0 +1,11 @@ +EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o + +# Only include multilibs for CPUs with an MMU. +M68K_MLIB_CPU += && match(FLAGS, "FL_MMU") + +# This rule uses MULTILIB_MATCHES to generate a definition of +# SYSROOT_SUFFIX_SPEC. +sysroot-suffix.h: $(srcdir)/config/m68k/print-sysroot-suffix.sh + $(SHELL) $(srcdir)/config/m68k/print-sysroot-suffix.sh \ + "$(SYSTEM_HEADER_DIR)/../.." "$(MULTILIB_MATCHES)" \ + "$(MULTILIB_OPTIONS)" > $@ diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 86c2f46a49e..8913ec0c923 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -3427,15 +3427,17 @@ applications. There are no standard Unix configurations. @end html @heading @anchor{m68k-x-x}m68k-*-* By default, @samp{m68k-*-aout}, @samp{m68k-*-coff*}, -@samp{m68k-*-elf*}, @samp{m68k-*-rtems} and @samp{m68k-*-uclinux} +@samp{m68k-*-elf*}, @samp{m68k-*-rtems}, @samp{m68k-*-uclinux} and +@samp{m68k-*-linux} build libraries for both M680x0 and ColdFire processors. If you only need the M680x0 libraries, you can omit the ColdFire ones by passing @option{--with-arch=m68k} to @command{configure}. Alternatively, you can omit the M680x0 libraries by passing @option{--with-arch=cf} to -@command{configure}. These targets default to 5206 code when +@command{configure}. These targets default to 5206 or 5475 code as +appropriate for the target system when configured with @option{--with-arch=cf} and 68020 code otherwise. -The @samp{m68k-*-linux-gnu}, @samp{m68k-*-netbsd} and +The @samp{m68k-*-netbsd} and @samp{m68k-*-openbsd} targets also support the @option{--with-arch} option. They will generate ColdFire CFV4e code when configured with @option{--with-arch=cf} and 68020 code otherwise.