]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl2.c (mark_used): Don't instantiate anything if skip_evaluation.
authorJason Merrill <jason@redhat.com>
Tue, 15 Apr 2003 16:26:44 +0000 (12:26 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 15 Apr 2003 16:26:44 +0000 (12:26 -0400)
        * decl2.c (mark_used): Don't instantiate anything if
        skip_evaluation.

From-SVN: r65644

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 047d593cff31948b4d375cc61d9764f688a41939..d3d379ff55e579fd14996d5a8f18cd8e3a1b59d5 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-15  Jason Merrill  <jason@redhat.com>
+
+       * decl2.c (mark_used): Don't instantiate anything if
+       skip_evaluation.
+
 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
 
        * Backport from mainline:
index 1dbaaf4b27e79e56e4f5e8a251d02cf90808b93e..681fd1a47845e2e93db66c67b964008ff0042ef7 100644 (file)
@@ -5195,10 +5195,10 @@ mark_used (decl)
      tree decl;
 {
   TREE_USED (decl) = 1;
-  if (processing_template_decl)
+  if (processing_template_decl || skip_evaluation)
     return;
-  if (!skip_evaluation)
-    assemble_external (decl);
+
+  assemble_external (decl);
 
   /* Is it a synthesized method that needs to be synthesized?  */
   if (TREE_CODE (decl) == FUNCTION_DECL