On Fri, Oct 30, 2015 at 08:02:12AM -0700, Cesar Philippidis wrote:
> On 10/30/2015 07:47 AM, Jakub Jelinek wrote:
> > On Thu, Oct 22, 2015 at 08:21:35AM -0700, Cesar Philippidis wrote:
> >> diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h
> >> index b2894cc..93adb7b 100644
> >> --- a/gcc/fortran/gfortran.h
> >> +++ b/gcc/fortran/gfortran.h
> >> @@ -1123,6 +1123,7 @@ typedef struct gfc_omp_namelist
> >>      } u;
> >>    struct gfc_omp_namelist_udr *udr;
> >>    struct gfc_omp_namelist *next;
> >> +  locus where;
> >>  }
> >>  gfc_omp_namelist;
> >>  
> >> diff --git a/gcc/fortran/openmp.c b/gcc/fortran/openmp.c
> >> index 3c12d8e..56a95d4 100644
> >> --- a/gcc/fortran/openmp.c
> >> +++ b/gcc/fortran/openmp.c
> >> @@ -244,6 +244,7 @@ gfc_match_omp_variable_list (const char *str, 
> >> gfc_omp_namelist **list,
> >>        }
> >>      tail->sym = sym;
> >>      tail->expr = expr;
> >> +    tail->where = cur_loc;
> >>      goto next_item;
> >>    case MATCH_NO:
> >>      break;
> >> @@ -278,6 +279,7 @@ gfc_match_omp_variable_list (const char *str, 
> >> gfc_omp_namelist **list,
> >>          tail = tail->next;
> >>        }
> >>      tail->sym = sym;
> >> +    tail->where = cur_loc;
> >>    }
> >>  
> >>      next_item:
> > 
> > The above is fine.
> 
> Thanks. I'll apply this change separately.

What I meant not just the above changes, but also all changes that
replace where with &n->where and the like, so pretty much everything
except for the oacc_compatible_clauses removal and addition of
resolve_omp_duplicate_list.  That is kind of unrelated change.

        Jakub

Reply via email to