decl2.c (mark_used): Don't instantiate anything if skip_evaluation.

* decl2.c (mark_used): Don't instantiate anything if
        skip_evaluation.

From-SVN: r65644
This commit is contained in:
Jason Merrill 2003-04-15 12:26:44 -04:00 committed by Jason Merrill
parent 28e8cf6d61
commit 7aa2166c59
2 changed files with 8 additions and 3 deletions

View 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:

View 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