diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-02 20:24:30 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-02 20:24:30 +0000 |
commit | 32141c6aa425c569eda7aec33398edc737d97a9f (patch) | |
tree | d788ec1c0d3cd3dd8bf607b5c5a80d62002ce875 | |
parent | 51090b25f5abed62218ad7203fddecd05abc9a62 (diff) | |
download | gcc-32141c6aa425c569eda7aec33398edc737d97a9f.tar.gz |
2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
* cp-tree.h: Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82580 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1615c2d3a7a..636a33cb688 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu> + * cp-tree.h: Fix typo. + * cp-tree.h: Include cgraph.h (DECL_NEEDED_P): Use cgraph_*node on the decl instead of TREE_SYMBOL_REFERENCED on the DECL_ASSEMBLER_NAME of the decl. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 84d3d4719a5..50e9fe896f5 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -1711,7 +1711,7 @@ struct lang_decl GTY(()) not something is comdat until end-of-file. */ #define DECL_NEEDED_P(DECL) \ ((at_eof && TREE_PUBLIC (DECL) && !DECL_COMDAT (DECL)) \ - || (DECL_P \ + || (DECL_P (DECL) \ && (TREE_CODE (DECL) == FUNCTION_DECL \ ? cgraph_node (DECL)->needed \ : cgraph_varpool_node (DECL)->needed)) \ |