summaryrefslogtreecommitdiffstats
path: root/gcc/final.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-19 01:28:56 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-19 01:28:56 +0000
commit4490a821e9afbe48b14cf5e6c6747d60fb09b2c9 (patch)
tree3b98c8b6def01f3ffef6ee0dc67f9968797dce2e /gcc/final.c
parent7683466464b78eee955a8a33c2e23cc36ce3e227 (diff)
downloadppe42-gcc-4490a821e9afbe48b14cf5e6c6747d60fb09b2c9.tar.gz
ppe42-gcc-4490a821e9afbe48b14cf5e6c6747d60fb09b2c9.zip
* cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
(cgraph_varpool_hash_node, eq_cgraph_varpool_node) (cgraph_varpool_node): Use DECL_UID for the key, not DECL_ASSEMBLER_NAME. (cgraph_function_possibly_inlined_p): Use the decl itself for the key, not DECL_ASSEMBLER_NAME. (change_decl_assembler_name): No need to muck with the hash tables. (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier): Delete. * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself for the key, not DECL_ASSEMBLER_NAME. * cgraph.h: Remove prototypes of deleted functions. * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED. (mark_decl_referenced): New function. * tree.h: Prototype mark_decl_referenced. * final.c (output_addr_const) <case SYMBOL_REF>: Call mark_decl_referenced before assemble_name. * c-decl.c (finish_decl): Use mark_decl_referenced. cp: * decl.c (cp_finish_decl): Use mark_decl_referenced. * decl2.c (maybe_make_one_only): Likewise. * method.c (use_thunk): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82015 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 281b161956f..ef1eeb29282 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -3252,6 +3252,8 @@ output_addr_const (FILE *file, rtx x)
break;
case SYMBOL_REF:
+ if (SYMBOL_REF_DECL (x))
+ mark_decl_referenced (SYMBOL_REF_DECL (x));
#ifdef ASM_OUTPUT_SYMBOL_REF
ASM_OUTPUT_SYMBOL_REF (file, x);
#else
OpenPOWER on IntegriCloud