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] [non-unit-at-a-time] Incorrect emission of unused compiler-generated destructor


------- Additional Comments From hubicka at ucw dot cz  2004-06-04 21:04 -------
Subject: Re:  [3.5 Regression] [unit-at-a-time] Incorrect emission of unused compiler-generated destructor at -O2

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

This is fine with me, but Mark approved the patch originally only for
3.4 (that is why i didn't applied it to mainline) but perhaps he meant
both? :)

Honza
> 
> -- 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>            Keywords|                            |ABI
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14639
> 
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.


-- 


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]