This is the mail archive of the gcc-patches@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]

Re: Mark abort, trap, unreachable and C++ EH and terminations as cold


> On 06/09/2017 12:53 PM, Jan Hubicka wrote:
> >Hi,
> >this patch marks the obvious candidates for cold attribute and enables
> >cold auto-detection on some common coding patterns.
> 
> >	* class.c (build_vtbl_initializer): Mark dvirt_fn as cold.
> >	* decl.c (cxx_init_decl_processing, push_throw_library_fn): Likewise.
> >	(excpet.c): Mark terminate as cold.
> 
> 
> My only complaint about the C++ bits is the 'excpet' typo in the changelog!

Thank you! I will try to mind to fix it at next commit.
I wonder if there are any other obvious candidates for branch prediction
in C++ FE?

Honza

> 
> nathan
> 
> -- 
> Nathan Sidwell


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