From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by sourceware.org (Postfix) with ESMTPS id 439A0385829C; Thu, 14 Mar 2024 16:55:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 439A0385829C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=net-b.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=net-b.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 439A0385829C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.17.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710435351; cv=none; b=iwDK3NAsoTa5Gt08AZe2kJVXfjNSHeQV9EflLO/RpSl136oV1q3TXuVviERpK7juFFtd3wZ5ZnkZ+UKacPGo/231/T6XUIXa/9NMTUxqKjQpfI+C9+4Dg5W4x5opJGFgyGbjUlWX9t3k3Q7zqBk1xQm8lCqFcnw53+t2jPLR/ok= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710435351; c=relaxed/simple; bh=ftHyGEzQFnWzk2dsEt/Jwqyy8KTsfozaik1b1XQXtWU=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=gU6C6BknYnWHmbD6KImr22CLEB0J2yofe3QVCRYeTDnG6BAz3oT1VD3aMumJrRLxzvtda7AV6qlz3FY2e/J5W1pYqBKTjUXQNUQkVBOHfcgncMx3VWWw2V9J0t+1U2jBH3gSbiUnxdCw0bgvrTZ2UoP3b4xB39/4mYCfWymEqDs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=net-b.de; s=s1-ionos; t=1710435346; x=1711040146; i=burnus@net-b.de; bh=HotzROyMpd0F267fnFkh1CPBcMHuQIBmDYrFSoWPs5A=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=CnP0hMHVkL9kbzztaa7e6e7x3+Lj3QceZn+SDRcC0ClRsHZRuiHAzUjlMAkxoLjZ ewU8WR55FzGLVZXFYW303rWI015eRAcWEYj70s6ieuv9gBrYBovnEN5PggFc8yRYF BDV+jUDhkB7WWFFHVu1eatdV0KnlBd5qIqF2Q6/t/VkVYu85PB7QAVcsRm59U4GmC WZzAAYNoqPuzWQWgGUs4Y1lniBuyx293QXbHNNL1uT+29GKgX80Uu8aknJg4jo/x/ AX5ts/TR42Nt76/I2J/ImGlehm3oWh6xcLD0Ns6mEB0odCnLMZQW4wjmMENR9p1U8 N/AK4WjR6rxbiXJ2Kg== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from [10.101.1.13] ([90.63.244.31]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1M3DaN-1rnpAy42LF-003ciF; Thu, 14 Mar 2024 17:55:46 +0100 Content-Type: multipart/alternative; boundary="------------nca3OZSwOn7jYpEIxNHlJdgM" Message-ID: Date: Thu, 14 Mar 2024 17:55:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: OpenACC 2.7: front-end support for readonly modifier: Add basic OpenACC 'declare' testing Content-Language: en-US To: Thomas Schwinge , Chung-Lin Tang , gcc-patches@gcc.gnu.org Cc: Tobias Burnus , fortran@gcc.gnu.org References: <87lefaaesb.fsf@euler.schwinge.homeip.net> <87ttqd7m8e.fsf@euler.schwinge.homeip.net> <2f568f7d-807b-41d1-befb-40039e2edb74@pllab.cs.nthu.edu.tw> <87le6mebri.fsf@euler.schwinge.ddns.net> <87sf0s6e9l.fsf@euler.schwinge.ddns.net> From: Tobias Burnus In-Reply-To: <87sf0s6e9l.fsf@euler.schwinge.ddns.net> X-Provags-ID: V03:K1:0t1fXyEedlb72+EfZfclZ4HV3VmzhibZ70B9Na/NKrKC5aEjSVC HkG+2E2rwhLccxy90x/YeqQbxOUxX/7BK6oxqguesuR0unk5clOGE2qkya7QQu1+wkMgVLd o04oUoweg0SA0w6NWc0TsyMZXae8Y7odVFGp9OrHiWR+lvv7Xeq8/i/+x1K6tvMRwUek6wg rc5Dk14Uf/cmKeti7MgCA== UI-OutboundReport: notjunk:1;M01:P0:JznEExE41lg=;G5dkmQv9QqoSaK9A1m1fea7kRGb kpdHFVaNBaklH/ToRBNClq5u5k6zhDVW4NDJ95WccH52q/bTE7IdT/unZoyyWoh0odIDkslyN kukath1Wrq4qWWPvAQL7pvLejmxuJVXR/F6QptbiyHRRs8FnGzIb8eR4EQcl6tw5yg1W2VzbY FuGZPfCT1FZ6foe78FepBkJCbaoNJFxnCsmTa5BZGpomsvYg3eGnWziC5r7BfjzMT7TosGTU7 TQDF2bA9K2sYENFU3KDS/oPxpbGRFmMzUjM5c2x7Gj9Io/UoXApal8cVFAkRTZB5/s206CpVh Toe9IMianB7v+Fc6g6upExsUYxUm9nOQyfuM6EgFRsV30GBOvI37bPZ1GmS5P25+L1MH2S84/ h8GX4tU8CSf94/RD8en/MiUPlP8sT/qJDQNGiILCOWB//CZkOayJvI63XL9/gogrghyQvoDQK E5vNThSLOd3rVyiLiiHwWV65/Ii98LyQUWe/vzOIPtlWdyoglK7eesqW9SlI94eaIxgcuh8jz 7qhCfAdGn577zQvrXRCMF2UD54+vVSoZd5XoT8UQEDQwoP1KBn9ATcMAte4r6E6UJ/z9aURCk COLBL07fLc+8uHxVpKhq/0uh7uEtTempoMT8L44Trl3jSA1sySSErxKVmOOsPpoEwwU7XudYo vew3Q1UcZLXGGnI+MPshzAdmYExAwBM1RxfiZni9s7Q9sbtg0qU4h5/jkQ2o+p5zLHZpmpi7y I0rMaxmu+nDI/qsRT0//kFYdgl6oR99FTwnIOHWuppx8Slv4O9ypDc= X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is a multi-part message in MIME format. --------------nca3OZSwOn7jYpEIxNHlJdgM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi all, hi Thomas & Chung-Lin, Thomas Schwinge wrote: > But I realized another thing: don't we have to handle the 'readonly' > modifier also in Fortran module files, that is, next to the OpenACC > 'declare' 'copyin' handling in 'gcc/fortran/module.cc': > 'AB_OACC_DECLARE_COPYIN' etc.? I bet so; it is not as bad as with the others as it is "only" an optimization hint, but it makes sense to make it available. Note that when you place the 'module' in the same file as the module users ('use'), the compiler might know things because they are in the same translation unit / file not because it is in the module ... > Chung-Lin, please check, via test cases. > 'gfortran.dg/goacc/routine-module*', for example, should provide some > guidance of how to achieve actual module file use, and then do the same > 'scan-tree-dump' as in the current 'readonly' modifier test cases. ... > By means of only emitting a tag > in the module file if the 'readonly' modifier is specified, we should > maintain compatibility with the current 'MOD_VERSION'. That was the idea: If only new information gets added (if used), older compilers still work. This has huge limitations and does not work as well as imagined but here it should work: Older .mod will work with new compilers, even though the reverse might not be true. Tobias --------------nca3OZSwOn7jYpEIxNHlJdgM--