OSDN Git Service

* decl2.c (maybe_make_one_only): Use mark_referenced.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jul 2003 23:47:59 +0000 (23:47 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jul 2003 23:47:59 +0000 (23:47 +0000)
* method.c (use_thunk): Likewsie.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69979 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/method.c

index 8d22b74..9f05933 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jul 31 01:07:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       * decl2.c (maybe_make_one_only): Use mark_referenced.
+       * method.c (use_thunk): Likewsie.
+
 Wed Jul 30 19:12:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
 
        * class.c (build_vtable_entry_ref): Kill.
index f89258c..bd51bd1 100644 (file)
@@ -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));
     }
 }
 
index 1a2f7b0..c49af51 100644 (file)
@@ -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;