From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4BDE38515E1; Wed, 21 Jul 2021 12:34:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4BDE38515E1 From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101551] New: [offloading] Differences in diagnostics etc. Date: Wed, 21 Jul 2021 12:34:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: unknown X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: minor X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2021 12:34:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101551 Bug ID: 101551 Summary: [offloading] Differences in diagnostics etc. Product: gcc Version: unknown Status: UNCONFIRMED Keywords: openacc, openmp Severity: minor Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: burnus at gcc dot gnu.org, jakub at gcc dot gnu.org Target Milestone: --- There are differences in diagnostics etc. depending on whether offloading is disabled or enabled, as we already had found in "openacc: Warnings for strange partitioning choices for parallel regions" a= nd following. Additionally, I just noticed that calling 'lang_hooks.decl_printable_name (current_function_decl, 2)' in 'gcc/omp-offload.c:execute_oacc_device_lower' for an OpenACC 'routine' 'void ROUTINE (float)', for C that returns 'ROUTIN= E', for C++ 'ROUTINE(float)' for offloading enabled and 'void ROUTINE(float)' otherwise (notice difference regarding return type), for corresponding Fort= ran 'routine_' for offloading enabled and 'routine' otherwise (notice differenc= e in '_' suffix). Low priority certainly, but would be nice to fix/unify at some point, becau= se this occasionally necessitates special care when writing testcases.=