From patchwork Fri May 25 08:03:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 136817 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3300102lji; Fri, 25 May 2018 01:44:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqCNsLJ+O5B5Bu0wgrc/6h7yBlg5T95VDK14eub9nZ0G3fpEWluIhFfhzcMcQZogoMaGE6m X-Received: by 2002:a62:a89:: with SMTP id 9-v6mr1617871pfk.112.1527237895948; Fri, 25 May 2018 01:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527237895; cv=none; d=google.com; s=arc-20160816; b=tQdRiBKR4YcTyuaPWikKKoFuJ9yxTGA0yXPPjHwsegYVdQRgCnnUiFzXXy58SE5yIl h+uzSOr1LAjeBUmG/34rV+o4YeBSRAzh3ZAQuZHWjAWvbwPCE9RAUKqDrmFCTvxfCKS8 K2/tEB0qGhWkoI5QAevRMGCgxQgO20aTBZhwez11SpCiffweB5k1E6e+HFTyT63+vNtu 6gaonYWJE9Sd1ntngG7oDK0UdGCc99x6f1WpM39E/fLzy0pSxy4hL+EMdoVkBY4HV4nn neqmpRNgC5A5k4VC7ZhwrkdYhUf92wBCSBUEvu+a6KuCkJtNnIwLHbQee1vwBsHCUCnu rk9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=5pGNw++6w4XkIYmngqlzQM683+H564py9s4c8+L1b6Y=; b=QkMx6Zc+E/JVm+cPWhW0KBBvQd5oCveTWhwlDhW28bYlq/TN7vu+aA3xhNfZsuZ65f pB789JkQ+UF0QehN5gPaphR/NiWTGI/WTvwG9we48Vtsr1LDB5lEbpH9wDj+nnSUd+U3 NW9wlPcOTewyDFM1LUg5AWsVeh32NML/+3QwuMy6W30e/GJ3zc489OVIBktYcfrvO7gA lGlut+s1yXM7p/6Drt9QM9dEk3ZIIkWXjKgi7FtSQ6sAVKhVWQqVeZOp+1ZJ1l8JujVF TW/V3IpvrDiSy8LPHmn/1cEJ+hWEr6zAIVG5PwJ0SGQ8K0IFgwOcIu3ltZ2D7aBjndnk MCQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=xaiQw+A6; spf=pass (google.com: domain of gcc-patches-return-478484-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478484-patch=linaro.org@gcc.gnu.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id e125-v6si13204967pgc.128.2018.05.25.01.44.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 01:44:55 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-478484-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=xaiQw+A6; spf=pass (google.com: domain of gcc-patches-return-478484-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478484-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:in-reply-to:references:mime-version :content-type; q=dns; s=default; b=V1NX5rCqdsrk0AsZcheMCNOOKfEvJ IwvcWppVhKweAq9GuOqLELYilPT28Gsr5e3iFFclOwADKwwmdPInDtOi34l7JcZ4 NM1/k/v/VKbkrlxQAXMveIRcbaQoom4Q8CIJAxsgmxhHsFjssYjDdGApeMGXZ5VW bFPoDUlLqtSlL8= 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:from :to:subject:date:message-id:in-reply-to:references:mime-version :content-type; s=default; bh=nl2T//wwiQkZjVdNuCttcq3KkLY=; b=xai Qw+A6e1/Er7gIgCu/PIEXtAvmhZp6QtVkJGhb48OaSodAnqoF73+MISxLLZsxGfO S3sWDRRivVeoHlfbya0ObYM5D0MSK43rHzr/bXfSpSJBE6NY1ThTjLcHUA5GbFdK 6LcMvI0iuTt495YzRQG6wb6SY0kqOc4WzOfpve5g= Received: (qmail 125613 invoked by alias); 25 May 2018 08:26:28 -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 76622 invoked by uid 89); 25 May 2018 08:11:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 May 2018 08:11:33 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM7or-0004vq-5X for gcc-patches@gcc.gnu.org; Fri, 25 May 2018 04:11:32 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:65467 helo=mx07-00178001.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fM7oq-0004vJ-SH for gcc-patches@gcc.gnu.org; Fri, 25 May 2018 04:11:25 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w4P892aj019427; Fri, 25 May 2018 10:11:23 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2j59qwu4u5-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 May 2018 10:11:23 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9F7823A; Fri, 25 May 2018 08:11:15 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6D704243D; Fri, 25 May 2018 08:11:15 +0000 (GMT) Received: from gnb.st.com (10.75.127.51) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 25 May 2018 10:11:14 +0200 From: Christophe Lyon To: , Subject: [ARM/FDPIC 21/21] [ARM][testsuite] FDPIC: Adjust pr43698.c to avoid clash with uclibc. Date: Fri, 25 May 2018 10:03:34 +0200 Message-ID: <20180525080354.13295-22-christophe.lyon@st.com> In-Reply-To: <20180525080354.13295-1-christophe.lyon@st.com> References: <20180525080354.13295-1-christophe.lyon@st.com> MIME-Version: 1.0 X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG5NODE1.st.com (10.75.127.13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-25_03:, , signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 91.207.212.93 X-IsSubscribed: yes uclibc defines bswap_32, so use a different name in this test. 2018-XX-XX Christophe Lyon gcc/testsuite/ * gcc.target/arm/pr43698.c (bswap_32): Rename as my_bswap_32. Change-Id: I2591bd911030814331cabf97ee5cf6cf8124b4f3 -- 2.6.3 diff --git a/gcc/testsuite/gcc.target/arm/pr43698.c b/gcc/testsuite/gcc.target/arm/pr43698.c index 1fc497c..3b5dad0 100644 --- a/gcc/testsuite/gcc.target/arm/pr43698.c +++ b/gcc/testsuite/gcc.target/arm/pr43698.c @@ -6,7 +6,7 @@ char do_reverse_endian = 0; -# define bswap_32(x) \ +# define my_bswap_32(x) \ ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8) | \ (((x) & 0x0000ff00) << 8) | \ @@ -16,7 +16,7 @@ char do_reverse_endian = 0; (__extension__ ({ \ uint64_t __res; \ if (!do_reverse_endian) { __res = (X); \ - } else if (sizeof(X) == 4) { __res = bswap_32((X)); \ + } else if (sizeof(X) == 4) { __res = my_bswap_32((X)); \ } \ __res; \ }))