From patchwork Mon Jan 17 14:13:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abid Qadeer X-Patchwork-Id: 50109 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EC5D03857C65 for ; Mon, 17 Jan 2022 14:14:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 431773858D3C; Mon, 17 Jan 2022 14:13:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 431773858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: ++yQIPADWfQetSin9p91O90zvIHZQjni8PwoLv2Bm7crlaKFn7+Hh7Gdy3W+j+lqJ2D96J/yAl Dn2GtDWszHtLrkSul2kXFo1wAgqx3+qsxjRbQ3EIgKVhCI7juvlJO30PtTX2/ApFJOnNJ9rOAo 8V7wiU8FnMdlvic0hATqOD2/x2pNeH5qsHjr1iOQceEOAQBR/k8oCe9qr2+ZFN5by0iZVnw1rD Ztcs6P9Q8lA4sf6TQuYoAV0dBn2dHnVyg1N26dcXUch1RknqsowtXd79wKb1D0vP4RiqzmjUSl sxxofkxk49svBhuvE1F3FBMG X-IronPort-AV: E=Sophos;i="5.88,295,1635235200"; d="scan'208";a="73386759" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 17 Jan 2022 06:13:58 -0800 IronPort-SDR: RJIN8m1LCNVNE8dtH4B7Uca3bZPSBoTsqUUlOSm1vP7m6g9xL45kiaH+7nLoxKpywN+GcZ3zuD na0wXZVxhMQhPwuJPrAPoVqARsIE3zr5sSGfOtTaclktMoXgs/+fLg1m3Uo5vH+29dBOTpx69H DLRhru2g3DQXg/xACYWaLkbm5TpftFroka7mcVqfva9kR0UeRNIPjnZB6oCUGlJJwAz/TN65OL luRQUFhCxrvg0whd4SzrWhZdqzonlDLAYEROE95fO5eT+5S1QjXB6RcDxlJxJaqgTRBKKFtQ+3 qk8= From: Hafiz Abid Qadeer To: , Subject: [Committed] Change kind of integer literal to fix a testcase. Date: Mon, 17 Jan 2022 14:13:47 +0000 Message-ID: <20220117141347.609639-1-abidh@codesourcery.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" As Thomas reported in https://gcc.gnu.org/pipermail/gcc-patches/2022-January/588448.html a test added in my recent allocate clause patch fails on m32. It was due to default kind for integer matching c_intptr_t for m32. I have now changed it to 0_1 so that always integer with kind=1 is used. gcc/testsuite/ChangeLog: * gfortran.dg/gomp/allocate-2.f90: Change 0 to 0_1. --- gcc/testsuite/gfortran.dg/gomp/allocate-2.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gfortran.dg/gomp/allocate-2.f90 b/gcc/testsuite/gfortran.dg/gomp/allocate-2.f90 index 88b2d26872d..657ff44d023 100644 --- a/gcc/testsuite/gfortran.dg/gomp/allocate-2.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/allocate-2.f90 @@ -33,7 +33,7 @@ subroutine foo(x) x=5 !$omp end parallel - !$omp parallel allocate (0: x) private(x) ! { dg-error "Expected integer expression of the 'omp_allocator_handle_kind' kind at .1." } + !$omp parallel allocate (0_1: x) private(x) ! { dg-error "Expected integer expression of the 'omp_allocator_handle_kind' kind at .1." } x=6 !$omp end parallel