From patchwork Thu Oct 11 13:34:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 148644 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2143365lji; Thu, 11 Oct 2018 06:42:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV63sGKKyn5N7YmjuqMoFzk5nm4mrNgKh0P5uN4gU/Pa/gnyhEKQ3ccrgZM0RKRyL060DD6K4 X-Received: by 2002:a17:902:47c2:: with SMTP id d2-v6mr1655384plh.317.1539265354220; Thu, 11 Oct 2018 06:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539265354; cv=none; d=google.com; s=arc-20160816; b=ZLnIzHULdeWm16cveZY9GGtCy4ZOwHAIBmtzyOrnnXbRkVe9HbaFudqvaFPXm3FOOo uMmp9R180bFx5Cg/zeuCXK3H6gOSFoV5N6HO5rfRxwD1I3ARH1lGOapwg9/dMQ6iI9HP 5beWAf/3v3CO06NfrRnw9Ual0Z/kcKmfiklbCnLgATd+Z5REhoed5rZQXiItbkvoCQzu M97O3XA6U4jfzzk1c34uuQuRWlv+KroCzsY+Y5yqRAt5LRlXcLvdnE89BgsO+Unxzl/s KKQPccOnB72WLuhDwf1i3Ugw3Kn0whE3VvhAu20ssbAjBjl6LAsY1kY9c0x/20fjKaRG f5vA== 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:cc:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=5pGNw++6w4XkIYmngqlzQM683+H564py9s4c8+L1b6Y=; b=qC698V5aGbpqxQEBJbrbCsq7LmDCrc5lSVw7psBRaAsnv6fTPp3ywhuqtXkr9OlHKQ cNlBP0CUwcMs5/ICHusZSWLso7rNrzf29ZLKttigT4Qpit73umTnBOPO3EgEJIUWW4wV 6Fp6GsyuJCXPIyJeMmvhAmvBUZWYC3gUhFi5F4Dr/RJ4m8j5Of0NXAyLOVC8Xar2uxkR UHFjvs3/I37m2Zl6oDT+w0/BUYghrlG+HrZ4D2st0HBJlNsDvP2C6BS7VfAhRB7c6Qhe OGmWoJhdYCokJvDB9c6AJnC6m2i3XtsvYH//ELsCmPRN1o6yBLuR/ZRB6kMayKh8CqES A6+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=OS+3kuhq; spf=pass (google.com: domain of gcc-patches-return-487351-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487351-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 h11-v6si24650679pgi.241.2018.10.11.06.42.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 06:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-487351-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=OS+3kuhq; spf=pass (google.com: domain of gcc-patches-return-487351-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487351-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:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=U1UxefceGGspju5F smoh1EW1nHcjO+ylN7GpoIAHvVD67tL/CUtxewZYUZdVt/cm5/AIci6RncywvJen 8yP2BN2ZzfVIw9tgX/v0bUVnRHWHea7pK3QsI4tvTp/keTcJUBk6BSQX8983z59J kU+XdOB24vU1GDqyYl7IorzuAfQ= 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:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=default; bh=nl2T//wwiQkZjVdNuCttcq 3KkLY=; b=OS+3kuhqJQ1boyrl/41w8DjcHnLRdJqcBi6U4Xv+0iL7X1LoCPve7h ZfwyJ8WUHMHttvxbQUiVqpVVMPP1zJElllmWiHLSuc7gQFEv6le4FTKBYPR2EWLI qBTaYZcxXWPHB3CIp4+DQ2q6cKdHSMrBUkCU2rtagJavqIhpJyzKM= Received: (qmail 105939 invoked by alias); 11 Oct 2018 13:42:20 -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 105465 invoked by uid 89); 11 Oct 2018 13:42:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx07-00178001.pphosted.com Received: from mx08-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (91.207.212.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Oct 2018 13:42:19 +0000 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 w9BDdnTQ023880; Thu, 11 Oct 2018 15:42:17 +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 2n0muy76vm-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 11 Oct 2018 15:42:17 +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 B4B3D31; Thu, 11 Oct 2018 13:42:16 +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 9F740555B; Thu, 11 Oct 2018 13:42:16 +0000 (GMT) Received: from gnb.st.com (10.75.127.45) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 11 Oct 2018 15:42:16 +0200 From: Christophe Lyon To: CC: Subject: [ARM/FDPIC v3 20/21] [ARM][testsuite] FDPIC: Adjust pr43698.c to avoid clash with uclibc. Date: Thu, 11 Oct 2018 15:34:57 +0200 Message-ID: <20181011133518.17258-21-christophe.lyon@st.com> In-Reply-To: <20181011133518.17258-1-christophe.lyon@st.com> References: <20181011133518.17258-1-christophe.lyon@st.com> MIME-Version: 1.0 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; \ }))