diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2024-08-16 12:26:27 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2024-08-22 12:35:36 +0200 |
commit | bcb33b1237042e9540a905d9de19219f876e26c0 (patch) | |
tree | 122f269922965af0435504d6684dd7e60a944561 /gcc/fold-const.cc | |
parent | 9bbad3685131ec95d970f81bf75f9556d4d92742 (diff) | |
download | gcc-bcb33b1237042e9540a905d9de19219f876e26c0.zip gcc-bcb33b1237042e9540a905d9de19219f876e26c0.tar.gz gcc-bcb33b1237042e9540a905d9de19219f876e26c0.tar.bz2 |
Do not emit a redundant DW_TAG_lexical_block for inlined subroutines
While this already works correctly for the case when an inlined
subroutine contains only one subrange, a redundant DW_TAG_lexical_block
is still emitted when the subroutine has multiple blocks.
Fixes: ac02e5b75451 ("re PR debug/37801 (DWARF output for inlined functions
doesn't always use DW_TAG_inlined_subroutine)")
gcc/ChangeLog:
PR debug/87440
* dwarf2out.cc (gen_inlined_subroutine_die): Handle the case
of multiple subranges correctly.
gcc/testsuite/ChangeLog:
* gcc.dg/debug/dwarf2/inline7.c: New test.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions