diff options
-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)) \ |