From: Ben Elliston Date: Wed, 11 May 2005 01:51:52 +0000 (+0000) Subject: Temporarily revert 2005-05-10 patch, which causes a 3.4 regression. X-Git-Tag: releases/gcc-3.4.4~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10b5facba103db28d37bc202c3d7200bec93601d;p=thirdparty%2Fgcc.git Temporarily revert 2005-05-10 patch, which causes a 3.4 regression. From-SVN: r99557 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 360fe4cc3322..6be5a36b676f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-05-11 Ben Elliston + + * dwarf2out.c: Revert my 2005-05-10 patch. + 2005-05-10 H.J. Lu Backport from mainline diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 7fae71bbd350..d59cc1d3ab57 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -12377,8 +12377,10 @@ dwarf2out_decl (tree decl) /* 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)) - context_die = NULL; + 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; break; case VAR_DECL: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a92b89c08349..50d8ba796d9b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-05-11 Ben Elliston + + * gcc.dg/debug/pr16676.c: Remove for now. + 2005-05-10 Ben Elliston PR debug/16676 diff --git a/gcc/testsuite/gcc.dg/debug/pr16676.c b/gcc/testsuite/gcc.dg/debug/pr16676.c deleted file mode 100644 index a9758858fd38..000000000000 --- a/gcc/testsuite/gcc.dg/debug/pr16676.c +++ /dev/null @@ -1,5 +0,0 @@ -/* { dg-do compile } */ - -void foo (void) { - void nested () {} -}