dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1 for the common case.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 17 Nov 1999 17:29:36 +0000 (17:29 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 17 Nov 1999 17:29:36 +0000 (12:29 -0500)
* dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
for the common case.

From-SVN: r30554

gcc/ChangeLog
gcc/dwarf2out.c

index b03966b282a04d037a9c7a274b33ecdfd68fb5a5..f6f11ed22911e5891d6fb94539bda9bb0fc4dcf1 100644 (file)
@@ -1,3 +1,8 @@
+1999-11-17  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
+       for the common case.
+
 1999-11-16  Jakub Jelinek  <jakub@redhat.com>
 
        * explow.c (hard_function_value): Add outgoing argument.
index 3dcdc15739e420b0957b34aa62ecbe37f36adb58..160b801061af8e6de63e54e48e1bb49994f03ffc 100644 (file)
@@ -7550,7 +7550,7 @@ push_decl_scope (scope)
       || containing_scope == NULL_TREE
       /* Ignore namespaces for the moment.  */
       || TREE_CODE (containing_scope) == NAMESPACE_DECL)
-    decl_scope_table[decl_scope_depth].previous = -1;
+    decl_scope_table[decl_scope_depth].previous = decl_scope_depth - 1;
   else
     {
       /* We need to search for the containing_scope.  If we don't find it,