PR debug/16676
* dwarf2out.c (dwarf2out_decl): Always set context_die to NULL,
even when debug_info_level is DINFO_LEVEL_TERSE.
[testsuite]
* gcc.dg/debug/pr16676.c: New test.
From-SVN: r99480
+2005-05-10 Ben Elliston <bje@au.ibm.com>
+
+ PR debug/16676
+ * dwarf2out.c (dwarf2out_decl): Always set context_die to NULL,
+ even when debug_info_level is DINFO_LEVEL_TERSE.
+
2005-05-08 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.c (m68hc11_z_replacement): Use emit_insn_after
/* If we're a nested function, initially use a parent of NULL; if we're
a plain function, this will be fixed up in decls_for_scope. If
we're a method, it will be ignored, since we already have a DIE. */
- if (decl_function_context (decl)
- /* But if we're in terse mode, we don't care about scope. */
- && debug_info_level > DINFO_LEVEL_TERSE)
- context_die = NULL;
+ if (decl_function_context (decl))
+ context_die = NULL;
break;
case VAR_DECL:
+2005-05-10 Ben Elliston <bje@au.ibm.com>
+
+ PR debug/16676
+ * gcc.dg/debug/pr16676.c: New test.
+
2005-05-08 Nathan Sidwell <nathan@codesourcery.com>
PR c++/21427
--- /dev/null
+/* { dg-do compile } */
+
+void foo (void) {
+ void nested () {}
+}