[Bug debug/87039] [8/9 Regression] DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 16 10:43:00 GMT 2018


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45006|0                           |1
        is obsolete|                            |

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45020
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45020&action=edit
gcc9-pr87039.patch

Unfortunately the previous patch only fixed the pr78363-1.C testcase and not
-2.C or -3.C.  The problem is that r253335 only tweaked parallel regions (and
later I've copied that to host teams), not others (task, target).
There is another thing I've noticed.  Because OMP expansion works from leaf
regions to outer regions, for parallel/task/target nested in another
parallel/task/target/host teams DECL_CONTEXT would be set incorrectly, pointing
at the ultimate containing function (the user function), rather than the
immediate parent.  And, after fixing that I've noticed dwarf2out.c needs
tweaking too, because it handles just one decl_function_context, doesn't work
recursively.


More information about the Gcc-bugs mailing list