diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-08-10 12:43:32 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2005-08-10 12:43:32 +0000 |
commit | ca8df3a9645e05501e78692690080adc0679e695 (patch) | |
tree | 1c7283ec1456250c1b8479dcf6367cbfa9029605 | |
parent | 458bd3d47ab103ac90c887d7a2df1179b53836ed (diff) |
* cp/decl2.c (import_export_vtable): Also mark decl as used with
mark_referenced.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/csl-3_4_3-linux-branch@102946 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.csl | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 1 |
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 |