aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog.csl5
-rw-r--r--gcc/cp/decl2.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog.csl b/gcc/ChangeLog.csl
index 82830f7a0ae..fb3b15495d9 100644
--- a/gcc/ChangeLog.csl
+++ b/gcc/ChangeLog.csl
@@ -1,3 +1,8 @@
+2005-08-10 Joseph Myers <joseph@codesourcery.com>
+
+ * cp/decl2.c (import_export_vtable): Also mark decl as used with
+ mark_referenced.
+
2005-03-25 Mark Mitchell <mark@codesourcery.com>
Backport from 3.4 branch:
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 2b26303639b..88c89e57cd7 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -1485,6 +1485,7 @@ import_export_vtable (tree decl, tree type, int final)
/* Mark the DECL as used, so that it will be emitted, even
if there are no references to it. */
TREE_USED (decl) = 1;
+ mark_referenced (DECL_ASSEMBLER_NAME (decl));
}
}
else