[Bug c++/14639] [3.5 Regression] [unit-at-a-time] Incorrect emission of unused compiler-generated destructor at -O2
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jun 3 23:35:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 23:35 -------
Here is the patch for 3.5.0 after Zack's patch:
Index: method.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/cp/method.c,v
retrieving revision 1.283
diff -u -p -r1.283 method.c
--- method.c 24 May 2004 21:07:42 -0000 1.283
+++ method.c 3 Jun 2004 23:34:11 -0000
@@ -353,7 +353,6 @@ use_thunk (tree thunk_fndecl, bool emit_
this translation unit. */
TREE_ADDRESSABLE (function) = 1;
mark_used (function);
- mark_decl_referenced (function);
if (!emit_p)
return;
Should I apply this Jan/Mark?
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ABI
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14639
More information about the Gcc-bugs
mailing list