[Bug debug/39267] gdb testusite regressions
--- Comment #1 from hubicka at gcc dot gnu dot org 2009-02-27 19:49 --- Subject: Bug 39267 Author: hubicka Date: Fri Feb 27 19:49:42 2009 New Revision: 144474 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144474 Log: PR debug/39267 * tree.h (TREE_PROTECTED): Fix comment. (BLOCK_HANDLER_BLOCK): Remove. (struct tree_block): Remove handler_block add body_block. (inlined_function_outer_scope_p): New. (is_body_block): Remove. * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK. * dwarf2out.c (is_inlined_entry_point): Remove. (add_high_low_attributes): Use inlined_function_outer_scope_p. (gen_block_die): Use is_inlined_entry_point check; remove body block code. * langhooks.h (struct lang_hooks): Remove no_bodu_blocks. * gimplify.c (gimplify_expr): Gimplify body blocks. * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper block with multiple subblocks. (dump_scope_block): Prettier output; dump more flags and info. (dump_scope_blocks): New. (remove_unused_locals): Use dump_scope_blocks. * tree-flow.h (dump_scope_blocks): Declare. * tree-cfg.c (execute_build_cfg): Dump scope blocks. * stmt.c (is_body_block): Remove. * tree-inline.c (remap_block): Copy BODY_BLOCK info. * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove. Modified: trunk/gcc/ChangeLog trunk/gcc/c-common.c trunk/gcc/c-objc-common.h trunk/gcc/dbxout.c trunk/gcc/dwarf2out.c trunk/gcc/langhooks-def.h trunk/gcc/langhooks.h trunk/gcc/stmt.c trunk/gcc/tree-cfg.c trunk/gcc/tree-flow.h trunk/gcc/tree-ssa-live.c trunk/gcc/tree.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39267
[Bug debug/39267] gdb testusite regressions
--- Comment #2 from hubicka at gcc dot gnu dot org 2009-02-28 21:34 --- Subject: Bug 39267 Author: hubicka Date: Sat Feb 28 21:34:23 2009 New Revision: 144496 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144496 Log: PR debug/39267 * cgraph.h (varpool_output_debug_info): Remove. * cgraphunit.c (varpool_output_debug_info): Remove. * dwarf2out.c (deferred_locations_struct): New struct (deferred_locations): New type. (deferred_locations_list): New static var. (deffer_location): New function. (gen_variable_die): Use it. (decls_for_scope): Output info on local static vars. (dwarf2out_finish): Process deferred locations. * varpool.c (varpool_output_debug_info): Remove. Added: trunk/gcc/testsuite/gcc.dg/debug/dwarf2/static1.c Modified: trunk/gcc/ChangeLog trunk/gcc/cgraph.h trunk/gcc/cgraphunit.c trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog trunk/gcc/varpool.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39267
[Bug debug/39267] gdb testusite regressions
--- Comment #3 from hubicka at gcc dot gnu dot org 2009-03-01 11:02 --- Subject: Bug 39267 Author: hubicka Date: Sun Mar 1 11:02:30 2009 New Revision: 144515 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144515 Log: PR debug/39267 * tree-inline.c (setup_one_parameter): Do not copy propagate arguments when not optimizing. PR debug/39267 * gcc.dg/debug/dwarf2/inline1.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-inline.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39267
[Bug debug/39267] gdb testusite regressions
--- Comment #4 from hubicka at gcc dot gnu dot org 2009-03-01 18:47 --- Subject: Bug 39267 Author: hubicka Date: Sun Mar 1 18:47:08 2009 New Revision: 144529 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144529 Log: PR debug/39267 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS, BLOCK_NONLOCALIZED_VAR): New macros. (tree_block): Add nonlocalized_vars. * dwarf2out.c (gen_formal_parameter_die, gen_variable_die, gen_decl_die): Add origin argument; allow generation of die with origin at hand only. (gen_member_die, gen_type_die_with_usage, force_decl_die, declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use of gen_*. (gen_block_die): Fix checking for unused blocks. (process_scope_var): Break out from ; work with origins only. (decls_for_scope) ... here; process nonlocalized list. (dwarf2out_ignore_block): Look for nonlocalized vars. * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized vars. (dump_scope_block): Dump them. * tree-inline.c (remap_decls): Handle nonlocalized vars. (remap_block): Likewise. (can_be_nonlocal): New predicate. (copy_bind_expr, copy_gimple_bind): Update use of remap_block. Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/tree-inline.c trunk/gcc/tree-ssa-live.c trunk/gcc/tree.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39267