From patchwork Tue Jun 27 08:00:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 781068 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wxfWr6M3wz9s2s for ; Tue, 27 Jun 2017 18:40:40 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ogDABIeq"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="SDCBKGJz"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=c/TirlLfL3xYzS0OTnuRf/sDoY7GxVGhnl4Es5+Dm2o=; b=ogDABIeqWcSohs xa2NiJzLdGVgFxit7k4/t4vTTGdYug/nceyx6pxdHB/xdfV7vLMAtXizAVG6kSoTvjxMRgk6YGfPV XbYpypZeaJlqEVlDjaGFSQDMSq1m/dwUhTFOOkZ4KAUPsGuXQsXpRAM0D3pt1QUFRfSU2bTdrYbOd nqQRZnRQefwYmvx3qvz5w11w+eHzv3AS/VVHY66V3sDF9UkRqqNlm9UwJk1gaAJc35NMivbG32NnY Zy0CrRcPMc/s672HGH9UebpdwplX3hlU5WJRsPmUSBq24GPpzxqekBZWOMVQmi1ZJM50Qcfgfm98e T2pO5ULi6wyS+JpJhKQg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dPm35-0000Mf-D9; Tue, 27 Jun 2017 08:40:39 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPm2v-00005u-L1 for linux-snps-arc@bombadil.infradead.org; Tue, 27 Jun 2017 08:40:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/kqEj8X/Lg6PaMqQOsxB0Hrx/HbV9Dl5Q/d+gWI6A4U=; b=SDCBKGJzOaitsXWI9MdoGpTWB 416A9MqIiKesa/3F/R2+LRlEm24vQcw3vcThpBEGHGoeajQm4BAXCzXIGPTblJdWYkMzgVQbe+Q0c XpNmTxWBY8J0ABvt48A2NfyIcREH7logNcvv2/U9RuGvXCDhUZiQxo3bND9mx1ijCPitC3AGJNceB bWRuYi1tLkcERZL1aPOGY5sTxwLG5aG3Q/N74mAfx/HedrOdo1AvrGikZSuBzLgZX/PYe8lB6DKhy PJPZ8+UaQRswH5ocVUt8lO3xRJGvLKBT/HQAlW3bFBIbbyErVEvLtJMiSWBrNsaq1LTUboTj8bsez yYHyZIX/Q==; Received: from smtprelay4.synopsys.com ([198.182.47.9] helo=smtprelay.synopsys.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPlRM-0000eJ-SL for linux-snps-arc@lists.infradead.org; Tue, 27 Jun 2017 08:01:43 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id DB9E724E2147; Tue, 27 Jun 2017 01:01:16 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id CA447955; Tue, 27 Jun 2017 01:01:16 -0700 (PDT) Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id AFB02952; Tue, 27 Jun 2017 01:01:16 -0700 (PDT) Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 27 Jun 2017 01:01:16 -0700 Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.105) by IN01WEHTCA.internal.synopsys.com (10.144.199.103) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 27 Jun 2017 13:31:12 +0530 Received: from vineetg-Latitude-E7450.internal.synopsys.com (10.121.3.13) by IN01WEHTCB.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 27 Jun 2017 13:31:11 +0530 From: Vineet Gupta To: "libc-alpha @ sourceware . org" Subject: [RFC 2/6] ARC: Fixed inline asm contraints to gcc 6.x Date: Tue, 27 Jun 2017 11:00:50 +0300 Message-ID: <1498550454-3560-3-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498550454-3560-1-git-send-email-vgupta@synopsys.com> References: <1498550454-3560-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 X-Originating-IP: [10.121.3.13] X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cupertino.Miranda@synopsys.com, Vineet Gupta , linux-snps-arc@lists.infradead.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Cupertino Miranda It seems glibc had some ancient ARC bits, added as part of some header sync up back in 1999 (I was still in college) That code obviously doesn't build with modern compilers. Signed-off-by: Cupertino Miranda Signed-off-by: Vineet Gupta --- stdlib/longlong.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/longlong.h b/stdlib/longlong.h index 0ec11c5056bf..fb6557272fa0 100644 --- a/stdlib/longlong.h +++ b/stdlib/longlong.h @@ -197,17 +197,17 @@ extern UDItype __udiv_qrnnd (UDItype *, UDItype, UDItype, UDItype); : "=r" ((USItype) (sh)), \ "=&r" ((USItype) (sl)) \ : "%r" ((USItype) (ah)), \ - "rIJ" ((USItype) (bh)), \ + "rICal" ((USItype) (bh)), \ "%r" ((USItype) (al)), \ - "rIJ" ((USItype) (bl))) + "rICal" ((USItype) (bl))) #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ __asm__ ("sub.f %1, %4, %5\n\tsbc %0, %2, %3" \ : "=r" ((USItype) (sh)), \ "=&r" ((USItype) (sl)) \ : "r" ((USItype) (ah)), \ - "rIJ" ((USItype) (bh)), \ + "rICal" ((USItype) (bh)), \ "r" ((USItype) (al)), \ - "rIJ" ((USItype) (bl))) + "rICal" ((USItype) (bl))) #define __umulsidi3(u,v) ((UDItype)(USItype)u*(USItype)v) #ifdef __ARC_NORM__