diff mbox

[m68k] Enable building for ColdFire Linux

Message ID 20111018162438.49b71c1f@rex.config
State New
Headers show

Commit Message

Julian Brown Oct. 18, 2011, 3:24 p.m. UTC
Hi,

The attached patch (by Maxim Kuvyrkov) enables building GCC for Linux
when the --with-arch=cf configuration option is in effect (i.e. when
building a compiler targeting ColdFire rather than legacy m68k).

Without the patch the build fails with an error such as:

.../gcc/config/m68k/t-mlibs:45: *** Error default cpu 'mcf5475' is not
in multilib set ''.  Stop.

OK to apply?

Thanks,

Julian

ChangeLog

	Maxim Kuvyrkov  <maxim@codesourcery.com>

        gcc/
        * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.

Comments

Andreas Schwab Oct. 19, 2011, 4:11 p.m. UTC | #1
Julian Brown <julian@codesourcery.com> writes:

> 	Maxim Kuvyrkov  <maxim@codesourcery.com>
>
>         gcc/
>         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.

Ok.

Andreas.
diff mbox

Patch

Index: gcc/config/m68k/t-linux
===================================================================
--- gcc/config/m68k/t-linux	(revision 179967)
+++ gcc/config/m68k/t-linux	(working copy)
@@ -18,8 +18,8 @@ 
 
 EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
 
-# Only include multilibs for 680x0 CPUs with an MMU.
-M68K_MLIB_CPU += && (CPU ~ "^m680") && (FLAGS ~ "FL_MMU")
+# Only include multilibs for 680x0 and ColdFire CPUs with an MMU.
+M68K_MLIB_CPU += && ((CPU ~ "^m680") || (CPU ~ "^mcf")) && (FLAGS ~ "FL_MMU")
 
 # This rule uses MULTILIB_MATCHES to generate a definition of
 # SYSROOT_SUFFIX_SPEC.