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

            Bug ID: 83792
           Summary: [openacc] Factor out async argument utility functions
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

The use of enum acc_async_t in libgomp is hard to understand.

In order to understand what this means:
...
if (async < acc_async_noval)
...
you need to know the names and values of the enum.

Using factored out functions, we get something that is easier to understand:
...
if (async_synchronous_p (async))
...

Reply via email to