diff options
Diffstat (limited to 'gcc')
-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 |