diff options
author | Jason Merrill <jason@redhat.com> | 2003-04-15 12:26:44 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-04-15 12:26:44 -0400 |
commit | 7aa2166c5937826c107bb6a395168d164393ff8e (patch) | |
tree | 63f0689dd83eee7fbe8e3c555f657b0224e0ae11 | |
parent | 28e8cf6d61b0005b1349c80487fe758154ab4e51 (diff) | |
download | gcc-7aa2166c5937826c107bb6a395168d164393ff8e.zip gcc-7aa2166c5937826c107bb6a395168d164393ff8e.tar.gz gcc-7aa2166c5937826c107bb6a395168d164393ff8e.tar.bz2 |
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
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 047d593..d3d379f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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: diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 1dbaaf4..681fd1a 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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 |