From patchwork Tue Mar 10 09:05:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 448436 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 21D111401AA for ; Tue, 10 Mar 2015 20:06:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=QNadNS7F; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; q=dns; s=default; b=IAEmfzjSfVYX/to0 5XziQz4qBH/O+6ll6cI2McIwN/ieYSVBFun1z/Ndf/nlDuh0a83BUNXxrIMiHQT1 /7aXRUFHJLzgw9AQmiwDoxhMr5b3jsPJPWNP0rivAs0Hg9xqoFUK7ofDj0JBzAxy T3AfTpjb1HhlvVkcrgMKWiNDC2s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; s=default; bh=yOrN/UlbkgzZ3Mmo8LVAaY mObGk=; b=QNadNS7FC7pBdHCHZL/TC7HJAdd4uW+FE/4if61tXZdmqmFveNTNip L9wxUJ4Hs15BBjwa1Li6VtU0rM7U+pe0FBVg4QMUdJA/k0Z7AmozM1tTp4a4Y0fr QMHfJ6oYJ8kM+Xwpg8YrVRFZil41lTfdhbnob7MfF2tY/2L0WWu4c= Received: (qmail 13716 invoked by alias); 10 Mar 2015 09:05:53 -0000 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 Received: (qmail 13706 invoked by uid 89); 10 Mar 2015 09:05:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout06.t-online.de Received: from mailout06.t-online.de (HELO mailout06.t-online.de) (194.25.134.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 10 Mar 2015 09:05:46 +0000 Received: from fwd12.aul.t-online.de (fwd12.aul.t-online.de [172.20.26.241]) by mailout06.t-online.de (Postfix) with SMTP id 021151EDB8A; Tue, 10 Mar 2015 10:05:43 +0100 (CET) Received: from [192.168.0.106] (TbWqaGZrYhMpq5xCCXESoj7TW3LYSDt017P2dLTBV8lPr8Afs0iEdnJPqphwM2NZ0X@[84.183.240.30]) by fwd12.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YVG6f-2X6yUi0; Tue, 10 Mar 2015 10:05:41 +0100 Message-ID: <1425978340.31283.18.camel@yam-132-YW-E178-FTW> Subject: Re: sh-*-linux build failure From: Oleg Endo To: Kaz Kojima Cc: ysato@users.sourceforge.jp, gcc-patches@gcc.gnu.org Date: Tue, 10 Mar 2015 10:05:40 +0100 In-Reply-To: <20150310.081924.180918398.kkojima@rr.iij4u.or.jp> References: <1425820481.27819.92.camel@yam-132-YW-E178-FTW> <20150308.231410.500646717.kkojima@rr.iij4u.or.jp> <874mpu8t1b.wl-ysato@users.sourceforge.jp> <20150310.081924.180918398.kkojima@rr.iij4u.or.jp> Mime-Version: 1.0 X-IsSubscribed: yes On Tue, 2015-03-10 at 08:19 +0900, Kaz Kojima wrote: > Yoshinori Sato wrote: > >> * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases. > [snip] > > It works fine. > > Thanks for checking. I've committed it on trunk as revision 221287. > > Regards, > kaz > I think the same should be done in t-sh and in t-linux we could add the SH1 little endian exception, too ... just in case (see attached patch). I'm not sure whether TM_MULTILIB_EXCEPTIONS_CONFIG is needed in t-linux or not. Moreover, I don't understand why t-linux doesn't pick up MULTILIB_EXCEPTIONS from t-sh.... any ideas? Cheers, Oleg Index: gcc/config/sh/t-linux =================================================================== --- gcc/config/sh/t-linux (revision 221308) +++ gcc/config/sh/t-linux (working copy) @@ -1,9 +1,9 @@ MULTILIB_DIRNAMES= MULTILIB_MATCHES = -DEFAULT_ENDIAN = $(word 1,$(TM_ENDIAN_CONFIG)) +# SH1 and SH2A support big endian only. ifeq ($(DEFAULT_ENDIAN),ml) -MULTILIB_EXCEPTIONS = m2a m2a/ml +MULTILIB_EXCEPTIONS = m1 ml/m1 m2a* ml/m2a* $(TM_MULTILIB_EXCEPTIONS_CONFIG) else -MULTILIB_EXCEPTIONS = ml/m2a +MULTILIB_EXCEPTIONS = ml/m1 ml/m2a* $(TM_MULTILIB_EXCEPTIONS_CONFIG) endif Index: gcc/config/sh/t-sh =================================================================== --- gcc/config/sh/t-sh (revision 221308) +++ gcc/config/sh/t-sh (working copy) @@ -63,8 +63,12 @@ done \ done) -# SH1 only supports big endian. +# SH1 and SH2A support big endian only. +ifeq ($(DEFAULT_ENDIAN),ml) +MULTILIB_EXCEPTIONS = m1 ml/m1 m2a* ml/m2a* $(TM_MULTILIB_EXCEPTIONS_CONFIG) +else MULTILIB_EXCEPTIONS = ml/m1 ml/m2a* $(TM_MULTILIB_EXCEPTIONS_CONFIG) +endif MULTILIB_OSDIRNAMES = \ $(OTHER_ENDIAN)=!$(OTHER_ENDIAN) \