aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-live.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2013-11-21 23:08:27 +0000
committerCary Coutant <ccoutant@gcc.gnu.org>2013-11-21 15:08:27 -0800
commit51b83fdd47de99a9f3927890924c92a1f9c2d8be (patch)
tree73a75d65ca6bc848d6e672fd80aa39f370dac946 /gcc/tree-ssa-live.c
parentaf7d1b7d17315b450db9de5c3d20f8a24a91b39e (diff)
downloadgcc-51b83fdd47de99a9f3927890924c92a1f9c2d8be.zip
gcc-51b83fdd47de99a9f3927890924c92a1f9c2d8be.tar.gz
gcc-51b83fdd47de99a9f3927890924c92a1f9c2d8be.tar.bz2
Add minimal line tables at -g1.
2013-11-21 Cary Coutant <ccoutant@google.com> gcc/ * dwarf2out.c (want_pubnames): Don't do pubnames for -g1. (add_linkage_name): Don't add linkage name for -g1. (decls_for_scope): Process subblocks for -g1. (dwarf2out_source_line): Output line tables for -g1. (dwarf2out_finish): Likewise. * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune unused scopes for -g1. * opts.c (common_handle_option): Handle -g same as -g2. * doc/invoke.texi: Update description for -g1. gcc/testsuite/ * gcc.dg/debug/dwarf2/mlt1.c: New test. * gcc.dg/debug/dwarf2/mlt2.c: New test. From-SVN: r205235
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r--gcc/tree-ssa-live.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c
index 51b4101..e46f20a 100644
--- a/gcc/tree-ssa-live.c
+++ b/gcc/tree-ssa-live.c
@@ -599,11 +599,11 @@ remove_unused_scope_block_p (tree scope)
eliminated. */
else if (!nsubblocks)
;
- /* For terse debug info we can eliminate info on unused variables. */
- else if (debug_info_level == DINFO_LEVEL_NONE
- || debug_info_level == DINFO_LEVEL_TERSE)
+ /* When not generating debug info we can eliminate info on unused
+ variables. */
+ else if (debug_info_level == DINFO_LEVEL_NONE)
{
- /* Even for -g0/-g1 don't prune outer scopes from artificial
+ /* Even for -g0 don't prune outer scopes from artificial
functions, otherwise diagnostics using tree_nonartificial_location
will not be emitted properly. */
if (inlined_function_outer_scope_p (scope))