From patchwork Thu Mar 26 07:51:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 454918 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 2340F14007F for ; Thu, 26 Mar 2015 18:51:38 +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=dtjClFfG; 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=F8cBjKEyOG1oPGbU pLpjWKnFrBV1OZau0NzadJ8rXvuvbKPOGHtTPvO1bMEtbeJG4LprRhKi8GN1fGjB SbMWvc1ANCJbuHtEryGyRmzMJ3jk2KTvWi3s7zaMsWv7BLk7uqMKqEUlfQQiUjI7 em00WRJqxtxDLk5NbUO9nPPQ3m4= 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=q3wdL4+thRFyt2oeFPCS6P cW5sQ=; b=dtjClFfGBlTpJs10E/w4xRxHTmpJ2QWBjvV6DM8BM0ETjwr6OIRPNs /myRAeMRq48sNMbDh284ZmDby5J52wqLvQA04Yli3VMuasgwCuMAVNeutVtcWNPn t0byikw5trxN7jnQQBqiQKbLBlLbhg0+p1veq3tJ+4AUxXPXnSBHw= Received: (qmail 7118 invoked by alias); 26 Mar 2015 07:51:30 -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 7097 invoked by uid 89); 26 Mar 2015 07:51:29 -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: mailout02.t-online.de Received: from mailout02.t-online.de (HELO mailout02.t-online.de) (194.25.134.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 26 Mar 2015 07:51:28 +0000 Received: from fwd20.aul.t-online.de (fwd20.aul.t-online.de [172.20.26.140]) by mailout02.t-online.de (Postfix) with SMTP id DDB1A2EB688; Thu, 26 Mar 2015 08:51:23 +0100 (CET) Received: from [192.168.0.106] (Sal2-wZlrhRho4K2BmeRm0Wv8Y8tVXJi4EpYJspRdfVF09h1jB+enjjRj523ekPgsI@[84.183.243.213]) by fwd20.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1Yb2ZX-0d2fWy0; Thu, 26 Mar 2015 08:51:23 +0100 Message-ID: <1427356282.19113.8.camel@yam-132-YW-E178-FTW> Subject: [SH][committed] Setting MULTILIB_EXCEPTIONS in gcc/config/sh/t-linux causes problems From: Oleg Endo To: Kaz Kojima , gcc-patches Cc: dhowells@redhat.com, nickc@redhat.com, ysato@users.sourceforge.jp Date: Thu, 26 Mar 2015 08:51:22 +0100 In-Reply-To: <20150326.094557.421471620.kkojima@rr.iij4u.or.jp> References: <11831.1427280188@warthog.procyon.org.uk> <20150325.205557.294195229.kkojima@rr.iij4u.or.jp> <1427320148.9570.72.camel@yam-132-YW-E178-FTW> <20150326.094557.421471620.kkojima@rr.iij4u.or.jp> Mime-Version: 1.0 X-IsSubscribed: yes On Thu, 2015-03-26 at 09:45 +0900, Kaz Kojima wrote: > Oleg Endo wrote: > > Sorry, I'm a bit confused. Do you mean something like the attached > > patch? If so, it means that the original patch for this problem > > https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00424.html > > should have been in t-sh and not in t-linux, right? > > Yes, I think so. Even sh-elf configured with --with-endian='little,big' > failed to build with the similar 'SH2a does not support little-endian' > error. I've committed the attached patches on trunk (r221685), 4.9 (r221686) and 4.8 (r221687). Cheers, Oleg Index: gcc/config/sh/t-sh =================================================================== --- gcc/config/sh/t-sh (revision 221685) +++ 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) \