This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71257] OpenMP declare simd linear with ref modifier doesn't accept references to non-integer/non-pointer


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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 24 16:19:43 2016
New Revision: 236648

URL: https://gcc.gnu.org/viewcvs?rev=236648&root=gcc&view=rev
Log:
        PR c++/71257
        * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
        SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
        SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
        SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
        SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.

        * semantics.c (finish_omp_clauses) <case OMP_CLAUSE_LINEAR>:
        For OMP_CLAUSE_LINEAR_REF don't require type to be
        integral or pointer.

        * g++.dg/vect/simd-clone-6.cc: New test.
        * g++.dg/gomp/declare-simd-6.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/declare-simd-6.C
    trunk/gcc/testsuite/g++.dg/vect/simd-clone-6.cc
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-stmts.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]