Convert remaining gimple_omp_single_ accessors to be typesafe
commit130349b3fd358ab22ab46507e970edc615477be4
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 29 Oct 2014 16:49:39 +0000 (29 12:49 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 29 Oct 2014 16:49:39 +0000 (29 12:49 -0400)
tree999e107ecab6f27664277f4902bcc56df9fd6bc4
parent20f72c251d49e68a1e9f7e4fb7cd0f6de202ae61
Convert remaining gimple_omp_single_ accessors to be typesafe

gcc/ChangeLog.gimple-classes:
* gimple.h (gimple_omp_single_clauses): Strengthen param from
const_gimple to const gomp_single *.
(gimple_omp_single_clauses_ptr): Strengthen param from gimple to
gomp_single *.

* gimple-walk.c (walk_gimple_op): Add checked cast.
* tree-inline.c (remap_gimple_stmt): Within case
GIMPLE_OMP_SINGLE, introduce local "omp_single_stmt" via a
checked cast and use in place of "stmt".
* tree-nested.c (convert_nonlocal_reference_stmt): Likewise.
(convert_local_reference_stmt): Likewise.
gcc/ChangeLog.gimple-classes
gcc/gimple-walk.c
gcc/gimple.h
gcc/tree-inline.c
gcc/tree-nested.c