This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14639] [3.5 Regression] [unit-at-a-time] Incorrect emission of unused compiler-generated destructor at -O2


------- Additional Comments From mark at codesourcery dot com  2004-06-03 23:38 -------
Subject: Re:  [3.5 Regression] [unit-at-a-time] Incorrect emission
 of unused compiler-generated destructor at -O2

pinskia at gcc dot gnu dot org wrote:

> ------- 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?

If it passes tests, yes, please.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14639


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]