aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-06-03 23:45:46 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-03 16:45:46 -0700
commitf9d189555573e9df0cfdb6b7cc1fb78b84775134 (patch)
treeca24ab13f00e587df990ab693a2a12d70e725370 /gcc
parent3d98fa14024bb2aee26f91fe7a6256fc089594fb (diff)
downloadgcc-f9d189555573e9df0cfdb6b7cc1fb78b84775134.zip
gcc-f9d189555573e9df0cfdb6b7cc1fb78b84775134.tar.gz
gcc-f9d189555573e9df0cfdb6b7cc1fb78b84775134.tar.bz2
re PR c++/14639 ([non-unit-at-a-time] Incorrect emission of unused compiler-generated destructor)
2004-06-03 Andrew Pinski <pinskia@physics.uc.edu> Jan Hubicka <jh@suse.cz> PR c++/14639 * method.c (use_think): Do not mark thunk as referenced. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r82612
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/method.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 652dc09..75aa42f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
+ Jan Hubicka <jh@suse.cz>
+
+ PR c++/14639
+ * method.c (use_think): Do not mark thunk as referenced.
+
2004-06-03 Matt Austern <austern@apple.com>
PR c++/15428
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 4920c54..01e5313 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -353,7 +353,6 @@ use_thunk (tree thunk_fndecl, bool emit_p)
this translation unit. */
TREE_ADDRESSABLE (function) = 1;
mark_used (function);
- mark_decl_referenced (function);
if (!emit_p)
return;