[gomp4] Fix PR72741

Cesar Philippidis cesar@codesourcery.com
Fri Jul 29 04:21:00 GMT 2016


Thomas found a bug in the fortran routine parser where errors involving
invalid combinations of gang, worker, vector and seq clauses were
getting suppressed. This patch does two things:

  1) It moves the error handling into gfc_match_oacc_routine. So now
     gfc_oacc_routine_dims returns OACC_FUNCTION_NONE when it detects
     an error. That's fine because it's ok for routines to default to
     OACC_FUNCTION_SEQ.

  2) It makes gfc_match_oacc_routine return a MATCH_ERROR when an error
     has been detected in gfc_oacc_routine_dims.

This bug is also present in trunk, but I'd like to see my other fortran
module patch go in first. In the meantime, I'll commit this patch to
gomp-4_0-branch.

Cesar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gomp4-pr72741.diff
Type: text/x-patch
Size: 3023 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160729/a5f4fe7a/attachment.bin>


More information about the Fortran mailing list