From: Andrew Pinski Date: Thu, 3 Jun 2004 23:45:46 +0000 (+0000) Subject: re PR c++/14639 ([non-unit-at-a-time] Incorrect emission of unused compiler-generated... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9d189555573e9df0cfdb6b7cc1fb78b84775134;p=gcc.git re PR c++/14639 ([non-unit-at-a-time] Incorrect emission of unused compiler-generated destructor) 2004-06-03 Andrew Pinski Jan Hubicka PR c++/14639 * method.c (use_think): Do not mark thunk as referenced. Co-Authored-By: Jan Hubicka From-SVN: r82612 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 652dc09a09e..75aa42f91a8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2004-06-03 Andrew Pinski + Jan Hubicka + + PR c++/14639 + * method.c (use_think): Do not mark thunk as referenced. + 2004-06-03 Matt Austern PR c++/15428 diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 4920c541152..01e5313f6de 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;