Re: [PATCH] Fix PR78363

2017-01-25 Thread Jakub Jelinek
On Wed, Jan 25, 2017 at 09:52:41AM +0100, Richard Biener wrote: > 2017-01-25 Richard Biener > > 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_ta

[PATCH] Fix PR78363

2017-01-25 Thread Richard Biener
The following patch fixes PR78363, debug confused by early debug emitted from inconsistent IL which happens after OMP outlining wrecks parts of the BLOCK tree (outlined TYPE_DECLs have wrong context). Bootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk? Thanks, Richard. 2017-01-25