diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-11-23 08:08:53 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-11-23 08:08:53 +0000 |
commit | 10f82b957f77acfeaa7fe20009a3ce90d243a764 (patch) | |
tree | 13478ede61b78ae95b6247863322ae7366d0d1f0 | |
parent | a93dcbc53a2054c70bf4c35ee617c4f9f1a8b05a (diff) | |
download | gcc-10f82b957f77acfeaa7fe20009a3ce90d243a764.zip gcc-10f82b957f77acfeaa7fe20009a3ce90d243a764.tar.gz gcc-10f82b957f77acfeaa7fe20009a3ce90d243a764.tar.bz2 |
* cp-tree.h (DECL_NEEDED_P): Tweak to match documentation.
From-SVN: r30635
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b5fdd4c..6c213df 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,7 +1,11 @@ +1999-11-23 Mark Mitchell <mark@codesourcery.com> + + * cp-tree.h (DECL_NEEDED_P): Tweak to match documentation. + 1999-11-22 Mark Mitchell <mark@codesourcery.com> * cp-tree.def (CTOR_COMPLETE): New tree node. - (finish_constructor_body): Add it, to mark the end of the + * decl.c (finish_constructor_body): Add it, to mark the end of the constructor. (finish_function): Don't call end_protect_partials here. * ir.texi (CTOR_COMPLETE): Document it. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 44d16c6..a83744e 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -2634,8 +2634,9 @@ extern int flag_new_for_scope; the symbol has been referenced in the generated code. If, however, we are not generating code, then it is also true when a symbol has just been used somewhere, even if it's not really needed. */ -#define DECL_NEEDED_P(DECL) \ - (TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME ((DECL)))) \ +#define DECL_NEEDED_P(DECL) \ + ((TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME ((DECL)))) \ + || (flag_syntax_only && TREE_USED ((DECL)))) /* An un-parsed default argument looks like an identifier. */ #define DEFARG_LENGTH(NODE) (DEFAULT_ARG_CHECK(NODE)->identifier.length) |