[Bug middle-end/101551] New: [offloading] Differences in diagnostics etc.

tschwinge at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 21 12:34:12 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101551

            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
<http://mid.mail-archive.com/87pmyg4y9s.fsf@euler.schwinge.homeip.net>
"openacc: Warnings for strange partitioning choices for parallel regions" and
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 'ROUTINE',
for C++ 'ROUTINE(float)' for offloading enabled and 'void ROUTINE(float)'
otherwise (notice difference regarding return type), for corresponding Fortran
'routine_' for offloading enabled and 'routine' otherwise (notice difference in
'_' suffix).

Low priority certainly, but would be nice to fix/unify at some point, because
this occasionally necessitates special care when writing testcases.


More information about the Gcc-bugs mailing list