From 9faa149ca31f95af13de7ee2282975ed27df8a28 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 31 Jul 2003 01:47:59 +0200 Subject: [PATCH] decl2.c (maybe_make_one_only): Use mark_referenced. * decl2.c (maybe_make_one_only): Use mark_referenced. * method.c (use_thunk): Likewsie. From-SVN: r69979 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 2 +- gcc/cp/method.c | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8d22b749794..9f0593398e7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 31 01:07:41 CEST 2003 Jan Hubicka + + * decl2.c (maybe_make_one_only): Use mark_referenced. + * method.c (use_thunk): Likewsie. + Wed Jul 30 19:12:48 CEST 2003 Jan Hubicka * class.c (build_vtable_entry_ref): Kill. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index f89258c867d..bd51bd1c136 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1517,7 +1517,7 @@ maybe_make_one_only (tree decl) { DECL_COMDAT (decl) = 1; /* Mark it needed so we don't forget to emit it. */ - TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) = 1; + mark_referenced (DECL_ASSEMBLER_NAME (decl)); } } diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 1a2f7b05161..c49af5175c1 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -323,7 +323,7 @@ use_thunk (tree thunk_fndecl, bool emit_p) this translation unit. */ TREE_ADDRESSABLE (function) = 1; mark_used (function); - TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (function)) = 1; + mark_referenced (DECL_ASSEMBLER_NAME (function)); if (!emit_p) return; @@ -460,7 +460,7 @@ use_thunk (tree thunk_fndecl, bool emit_p) /* Since we want to emit the thunk, we explicitly mark its name as referenced. */ - TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (thunk_fndecl)) = 1; + mark_referenced (DECL_ASSEMBLER_NAME (thunk_fndecl)); /* But we don't want debugging information about it. */ DECL_IGNORED_P (thunk_fndecl) = 1;