Patchwork m68k-linux: reduce multilibs

login
register
mail settings
Submitter Andreas Schwab
Date Dec. 26, 2010, 6:19 p.m.
Message ID <m2k4iwbdmp.fsf@whitebox.home>
Download mbox | patch
Permalink /patch/76719/
State New
Headers show

Comments

Andreas Schwab - Dec. 26, 2010, 6:19 p.m.
Linux/m68k only supports m680x0 CPUs, so exclude the other variants from
the multilib selection for m68k-linux targets.

Andreas.

2010-12-26  Andreas Schwab  <schwab@linux-m68k.org>

	* config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs.
Maxim Kuvyrkov - Dec. 26, 2010, 7:26 p.m.
On Dec 26, 2010, at 9:19 PM, Andreas Schwab wrote:

> Linux/m68k only supports m680x0 CPUs, so exclude the other variants from
> the multilib selection for m68k-linux targets.

It's true that Freescale still hasn't contributed linux port for ColdFire V4 upstream; it is maintained at http://bitshrine.org/ltib/.  Still, I think that should not be the reason to exclude multilib support for ColdFire GNU/Linux from GCC.  Is there anything specific you want to fix or improve in m68k multilib machinery?

Thanks,

--
Maxim Kuvyrkov
CodeSourcery
+1-650-331-3385 x724
Andreas Schwab - Dec. 26, 2010, 9:39 p.m.
FL_MMU is the wrong thing to check for, really.

Andreas.

Patch

diff --git a/gcc/config/m68k/t-linux b/gcc/config/m68k/t-linux
index 8dd5112..7af40da 100644
--- a/gcc/config/m68k/t-linux
+++ b/gcc/config/m68k/t-linux
@@ -18,8 +18,8 @@ 
 
 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")
+# Only include multilibs for 680x0 CPUs with an MMU.
+M68K_MLIB_CPU += && (CPU ~ "^m680") && (FLAGS ~ "FL_MMU")
 
 # This rule uses MULTILIB_MATCHES to generate a definition of
 # SYSROOT_SUFFIX_SPEC.