This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, m68k] Enable building for ColdFire Linux
- From: Julian Brown <julian at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: maxim at codesourcery dot com
- Date: Tue, 18 Oct 2011 16:24:38 +0100
- Subject: [PATCH, m68k] Enable building for ColdFire Linux
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.
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.