re PR debug/78363 (ICE in in force_type_die, at dwarf2out.c:24864)
authorRichard Biener <rguenther@suse.de>
Wed, 25 Jan 2017 09:48:10 +0000 (09:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 25 Jan 2017 09:48:10 +0000 (09:48 +0000)
commit5c628c3e6f1af513a644fcdb7b18ef8945087e64
tree83666106fed94ec82bcc9d3ccff6ed8264722ae0
parent9078cd3665d56091735c386dffaa0105d58ba070
re PR debug/78363 (ICE in in force_type_die, at dwarf2out.c:24864)

2017-01-25  Richard Biener  <rguenther@suse.de>

PR debug/78363
* omp-expand.c: Include debug.h.
(expand_omp_taskreg): Make sure to generate early debug before
outlining anything from a function.
(expand_omp_target): Likewise.
(grid_expand_target_grid_body): Likewise.

* g++.dg/gomp/pr78363-1.C: New testcase.
* g++.dg/gomp/pr78363-2.C: Likewise.
* g++.dg/gomp/pr78363-3.C: Likewise.

From-SVN: r244892
gcc/ChangeLog
gcc/omp-expand.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr78363-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/pr78363-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/pr78363-3.C [new file with mode: 0644]