[Bug middle-end/86539] OpenMP wrong-code with taskloop and references

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 17 08:19:00 GMT 2018


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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jul 17 08:06:25 2018
New Revision: 262776

URL: https://gcc.gnu.org/viewcvs?rev=262776&root=gcc&view=rev
Log:
        PR middle-end/86539
        * gimplify.c (gimplify_omp_for): Ensure taskloop firstprivatized init
        and cond temporaries don't have reference type if iterator has
        pointer type.  For init use &for_pre_body instead of pre_p if
        for_pre_body is non-empty.

        * testsuite/libgomp.c++/pr86539.C: New test.

Added:
    trunk/libgomp/testsuite/libgomp.c++/pr86539.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/libgomp/ChangeLog


More information about the Gcc-bugs mailing list