config.gcc (m68k-*-linux*): Add with_arch.
authorNathan Sidwell <nathan@gcc.gnu.org>
Mon, 7 Jul 2008 11:14:37 +0000 (11:14 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 7 Jul 2008 11:14:37 +0000 (11:14 +0000)
* 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

gcc/ChangeLog
gcc/config.gcc
gcc/config/m68k/t-linux [new file with mode: 0644]
gcc/doc/install.texi

index 2f51dfc..a8b6c4a 100644 (file)
@@ -1,3 +1,19 @@
+2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
+           Nathan Sidwell  <nathan@codesourcery.com>
+
+       * 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  <nathan@codesourcery.com>
+
+       * 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  <ghazi@caip.rutgers.edu>
 
        * gcc.c (execute): Fix -Wc++-compat warning.
index eda2812..e73223b 100644 (file)
@@ -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 (file)
index 0000000..f46d3a8
--- /dev/null
@@ -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)" > $@
index 86c2f46..8913ec0 100644 (file)
@@ -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.