From patchwork Tue Oct 18 15:24:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 120448 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id D8424B6F8B for ; Wed, 19 Oct 2011 02:25:07 +1100 (EST) Received: (qmail 16677 invoked by alias); 18 Oct 2011 15:25:05 -0000 Received: (qmail 16661 invoked by uid 22791); 18 Oct 2011 15:25:03 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL, BAYES_00, FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Oct 2011 15:24:49 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RGBX6-0006X8-Ic from Julian_Brown@mentor.com for gcc-patches@gcc.gnu.org; Tue, 18 Oct 2011 08:24:48 -0700 Received: from rex.config ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 18 Oct 2011 16:24:46 +0100 Date: Tue, 18 Oct 2011 16:24:38 +0100 From: Julian Brown To: gcc-patches@gcc.gnu.org Cc: maxim@codesourcery.com Subject: [PATCH, m68k] Enable building for ColdFire Linux Message-ID: <20111018162438.49b71c1f@rex.config> Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 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.