aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-11-19 14:44:13 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-11-19 14:44:13 +0100
commit4ccc4e30141613c4585a0497e050cb5deda06007 (patch)
tree7727a592dda3ece4affda62848329336a44d8219 /gcc/dwarf2out.c
parente48e04f598c89a71a5aff3f02cb38b7bf06b5b2b (diff)
downloadgcc-4ccc4e30141613c4585a0497e050cb5deda06007.zip
gcc-4ccc4e30141613c4585a0497e050cb5deda06007.tar.gz
gcc-4ccc4e30141613c4585a0497e050cb5deda06007.tar.bz2
re PR debug/87039 (DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp)
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. From-SVN: r266272
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index d2bea27..9933650 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -26403,7 +26403,7 @@ dwarf2out_early_global_decl (tree decl)
enough so that it lands in its own context. This avoids type
pruning issues later on. */
if (context_die == NULL || is_declaration_die (context_die))
- dwarf2out_decl (context);
+ dwarf2out_early_global_decl (context);
}
/* Emit an abstract origin of a function first. This happens