diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-06-02 20:24:30 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-06-02 13:24:30 -0700 |
commit | b9696fd41dee5e9eb711b989648f38432f6e90b0 (patch) | |
tree | d788ec1c0d3cd3dd8bf607b5c5a80d62002ce875 | |
parent | 26f4ba86cf6d6bdd54996f4033f2b20d7a11130d (diff) | |
download | gcc-b9696fd41dee5e9eb711b989648f38432f6e90b0.zip gcc-b9696fd41dee5e9eb711b989648f38432f6e90b0.tar.gz gcc-b9696fd41dee5e9eb711b989648f38432f6e90b0.tar.bz2 |
cp-tree.h: Fix typo.
2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
* cp-tree.h: Fix typo.
From-SVN: r82580
-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 1615c2d..636a33c 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 84d3d47..50e9fe8 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)) \ |