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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Nov 19 13:44:13 2018
New Revision: 266272

URL: https://gcc.gnu.org/viewcvs?rev=266272&root=gcc&view=rev
Log:
        PR debug/87039
        * omp-expand.c: Don't include debug.h.
        (adjust_context_and_scope): Add REGION argument.  Find DECL_CONTEXT
        from innermost outer parallel, task, teams or target that has a
        child_fn set, or, if there is no such outer region, use
        current_function_decl.  Do the DECL_CONTEXT adjustment regardless of
        whether a suitable BLOCK is found or not.
        (expand_parallel_call, expand_teams_call): Don't call
        adjust_context_and_scope here.
        (grid_expand_target_grid_body): Revert 2017-01-25 changes.
        (expand_omp_taskreg, expand_omp_target): Likewise.  Call
        adjust_context_and_scope.
        * dwarf2out.c (dwarf2out_early_global_decl): For
        decl_function_context recurse instead of calling dwarf2out_decl.

        * g++.dg/gomp/pr78363-4.C: New test.
        * g++.dg/gomp/pr78363-5.C: New test.
        * g++.dg/gomp/pr78363-6.C: New test.
        * g++.dg/gomp/pr78363-7.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr78363-4.C
    trunk/gcc/testsuite/g++.dg/gomp/pr78363-5.C
    trunk/gcc/testsuite/g++.dg/gomp/pr78363-6.C
    trunk/gcc/testsuite/g++.dg/gomp/pr78363-7.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/omp-expand.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to