diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-23 08:08:53 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-23 08:08:53 +0000 |
commit | ea7a80c8295f6933001d456acf7b0c038f4da088 (patch) | |
tree | 13478ede61b78ae95b6247863322ae7366d0d1f0 | |
parent | b8022157d72b1083192ba497daf4fee74a32b1a9 (diff) | |
download | ppe42-gcc-ea7a80c8295f6933001d456acf7b0c038f4da088.tar.gz ppe42-gcc-ea7a80c8295f6933001d456acf7b0c038f4da088.zip |
* cp-tree.h (DECL_NEEDED_P): Tweak to match documentation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30635 138bc75d-0d04-0410-961f-82ee72b054a4
-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 b5fdd4cc68c..6c213df420b 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 44d16c6b1a1..a83744e2876 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) |