aboutsummaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2020-12-07 12:00:00 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2020-12-10 13:44:39 +0100
commit2e6562043c48c0ae6bc9823d438685269eb11aab (patch)
tree07d50e82b640b2152ad9a7a0b6738ec3dca58e12 /libcc1
parenta1fb16e5472fded44181dd8938f2ba3cbe9844b6 (diff)
downloadgcc-2e6562043c48c0ae6bc9823d438685269eb11aab.zip
gcc-2e6562043c48c0ae6bc9823d438685269eb11aab.tar.gz
gcc-2e6562043c48c0ae6bc9823d438685269eb11aab.tar.bz2
Remove misleading debug line entries
This removes gimple_debug_begin_stmts without block info which remain after a gimple block originating from an inline function is unused. The line numbers from these stmts are from the inline function, but since the inline function is completely optimized away, there will be no DW_TAG_inlined_subroutine so the debugger has no callstack available at this point, and therefore those line table entries are not helpful to the user. 2020-12-10 Bernd Edlinger <bernd.edlinger@hotmail.de> * cfgexpand.c (expand_gimple_basic_block): Remove special handling of debug_inline_entries without block info. * tree-inline.c (remap_gimple_stmt): Drop debug_nonbind_markers when the call statement has no block info. (copy_debug_stmt): Remove debug_nonbind_markers when inlining and the block info is mapped to NULL. * tree-ssa-live.c (clear_unused_block_pointer): Remove debug_nonbind_markers originating from removed inline functions.
Diffstat (limited to 'libcc1')
0 files changed, 0 insertions, 0 deletions