From b9696fd41dee5e9eb711b989648f38432f6e90b0 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 2 Jun 2004 20:24:30 +0000 Subject: [PATCH] cp-tree.h: Fix typo. 2004-06-02 Andrew Pinski * cp-tree.h: Fix typo. From-SVN: r82580 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/cp-tree.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 + * 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)) \ -- 2.30.2