From patchwork Wed Jul 24 20:51:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 1136552 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-505641-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ov0GXQD7"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=marvell.com header.i=@marvell.com header.b="V+J63cU6"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=marvell.onmicrosoft.com header.i=@marvell.onmicrosoft.com header.b="fkjhPI6T"; dkim-atps=neutral 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 45v6wg4TX0z9sBt for ; Thu, 25 Jul 2019 06:52:17 +1000 (AEST) 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:content-type:content-id :content-transfer-encoding:mime-version; q=dns; s=default; b=qxR kIesR6kJ/yEFGlV2JEE8+motMO7ycLahQhrFtZA8cTRfNowwmPScfFQ8P0aHNFw1 ZhSi8qSqh4CXl34WBgXfniyshYFPe5ZXKLXz0CMNdVZWubDnEQsB40RVeOpuS2jF FW0Xz3KqTOlI5624Gx1Lgdr4BqUzPVNe7rr7GunE= 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:content-type:content-id :content-transfer-encoding:mime-version; s=default; bh=ID4JzgRIh Er4N2suDSNV6xZkYRU=; b=ov0GXQD7hATe5o6ko9x9Vn36Aw+jnN6+QXa7T35bV E/w/BultyMonSseezpmsZWXKNbHyz+XCrUlPObdPmm7W6fDDjFEwFDDAi9CMZ+Da Iup1BsvTbJFvWH56RNklcTpdyoyTh9BasMTGdtlGxR7Kzrdv3r55dwKiGCYQd0SM Q8= Received: (qmail 11489 invoked by alias); 24 Jul 2019 20:52:10 -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 11481 invoked by uid 89); 24 Jul 2019 20:52:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx0b-0016f401.pphosted.com Received: from mx0b-0016f401.pphosted.com (HELO mx0b-0016f401.pphosted.com) (67.231.156.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 24 Jul 2019 20:52:08 +0000 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6OKpukC026608 for ; Wed, 24 Jul 2019 13:52:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : content-type : content-id : content-transfer-encoding : mime-version; s=pfpt0818; bh=89jeMzgWCycLEd1GsjbFhsiPpQvcNEhDRrClXPX4IdY=; b=V+J63cU6AnTMu+kYI3DjsF7X3Cswrxn8kNibCiqYiUpgg4qUk1pLM7gNpXVwJKgZVaLq ZvB7y/f/pLV0WKzIKgd+MjNvTBSixFRFuSP4exdLZlmb2jTqliPO13YhQHG6SqZao5W+ ZzDaq2oX64pbITUrdS1352d0IEhVRS/mR4burjmQso0f8x9Hq0mpR1g+B4Dy/1CGjhUa wj4ufKmDmYgjbVd9qYeH/ScItmBUEb8NOxVYkW1kr5zpiornLbItuuuxuS0yiuMxd+4s RvL1JmtSFK0XbQ9bDhP+O2Ln5NfubXyWFZ2WG1Xoajkha/9bADlD7ggfc1cIDDMzLsWV og== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2tx624wwkt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 24 Jul 2019 13:52:06 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 24 Jul 2019 13:52:04 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.58) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 24 Jul 2019 13:52:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UKvESwxJhz3qd43mE5uYJch0bJRY+CC+L5rhLzPeJRwMugqbvG5dp+SmLcnLKeWIBkxlNIecApeqIWNMqrtrN4feEkmtUXW37HrSdX0+7Mx8S1C4Z/Gw3cZ0IRJl2yOjIWkdUQjhUXI4AceECpwXA+pK2Y9BIF96SkX+cUTjhOhkRLWG2zURrG46RmY7aOYnbn7TZDP/8547DzDentn7ymxppLrpeU3MLGcYn4igs5ZbUDh6+ds300TJuJZEM4nonBwp79wRnmJglN1JWB2b1u7WGqaVxC+OFwxoG02sx9h71+0mq+lFvSt7r6AlFjIs7Yac/NT9pct5JRLwICaBrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=89jeMzgWCycLEd1GsjbFhsiPpQvcNEhDRrClXPX4IdY=; b=I+eZGSJoKwoWmlKPa0D12C7vXUPK9C4IFLl7wqawMA/9Ec1aWw6YZb+gOtz8Orp6Sde5007eonByUVjw/V5+uLTc93FUtEIhE32INxeUacwTtkGJSPp7bkoQEX+A3rSxI5NrFi6iDnA6MdYKR9P+8kldn4N/NtSRqJqj7QrnFvpAwhYghjwFkupt/KNeCRB8lVIVl1yR1u9VPeEaE2Hm+9/mZLgiTJAEXnS7ouPkhFuwyUrZvNGj5EXqr7V0DKOT4/YHJW0HT53gP7vMV7RH1joQbC532Q/5d523mCWPDo4mDMdcOI5eR+/sZ36AiXQVz1h9Z3O4G/AMU6cCJmLdoQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=89jeMzgWCycLEd1GsjbFhsiPpQvcNEhDRrClXPX4IdY=; b=fkjhPI6Tl/JZ629UNYGk0NAJgBxK/YdDK/rtHBnhCMACvrTWYfxONCuMMfYb4EkBCZjeDsTlT6Kj0dOM9pj5xPGtXnZzWtqzxHr2Ek/MMga5FX0eAmlbUTWWvgROtaxMv+zElTaRvSQU4YQaBsOJkP+eI7IL+dudgEwNkUydah4= Received: from MN2PR18MB3263.namprd18.prod.outlook.com (10.255.237.88) by MN2PR18MB2365.namprd18.prod.outlook.com (20.179.82.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Wed, 24 Jul 2019 20:51:58 +0000 Received: from MN2PR18MB3263.namprd18.prod.outlook.com ([fe80::ccb:a3e1:97dc:43bf]) by MN2PR18MB3263.namprd18.prod.outlook.com ([fe80::ccb:a3e1:97dc:43bf%7]) with mapi id 15.20.2094.017; Wed, 24 Jul 2019 20:51:58 +0000 From: Steve Ellcey To: "gcc-patches@gcc.gnu.org" Subject: [PATCH] Fix gcc.dg/gomp/pr89104.c failure on aarch64 Date: Wed, 24 Jul 2019 20:51:58 +0000 Message-ID: <6e747c77678460af40bf06c60ec4e9118bac0946.camel@marvell.com> x-ms-oob-tlc-oobclassifiers: OLM:9508; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-ID: <75515EE2887C89429FADC3910F7BC615@namprd18.prod.outlook.com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sellcey@marvell.com I noticed that the test gcc.dg/gomp/pr89104.c fails on aarch64 platforms. As mentioned in the bug report for PR 89104, this message is coming from aarch64 target specific code which is why it does not occur on other platforms. There doesn't seem to be complete consensus in the bug report on how to deal with this but I chose to just use -w on aarch64 to surpress the warning. The warning that we get is: pr89104.c:8:1: warning: GCC does not currently support mixed size types for ‘simd’ functions 8 | foo (int *x, int y) This is because 'x' is a 64 bit pointer and 'y' is a 32 bit integer in the default LP64 mode. If I use -mabi=ilp32, then aarch64 does not generate a warning because both arguments are 32 bits. I could force ILP32 mode for aarch64 and/or only use -w only when not in 32 bit mode but that seemed like overkill to me. OK to checkin? Steve Ellcey sellcey@marvell.com 2019-07-24 Steve Ellcey * gcc.dg/gomp/pr89104.c: Use -w on aarch64*-*-* targets. diff --git a/gcc/testsuite/gcc.dg/gomp/pr89104.c b/gcc/testsuite/gcc.dg/gomp/pr89104.c index 505fdda..7f0f688 100644 --- a/gcc/testsuite/gcc.dg/gomp/pr89104.c +++ b/gcc/testsuite/gcc.dg/gomp/pr89104.c @@ -2,6 +2,7 @@ /* PR ipa/89104 */ /* { dg-do compile } */ /* { dg-options "-O2 -fopenmp-simd" } */ +/* { dg-options "-O2 -fopenmp-simd -w" { target aarch64*-*-* } } */ #pragma omp declare simd uniform (x) aligned (x) int