bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] Mark various cold functions as __COLD


From: Samuel Thibault
Subject: Re: [PATCH 3/3] Mark various cold functions as __COLD
Date: Mon, 1 May 2023 23:54:26 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Cristian Rodríguez, le lun. 01 mai 2023 17:52:17 -0400, a ecrit:
> On Sat, Apr 29, 2023 at 9:12 AM Sergey Bugaev via Libc-alpha <[1]
> libc-alpha@sourceware.org> wrote:
> 
>     GCC docs explicitly list perror () as a good candidate for using
>     __attribute__ ((cold)). So apply __COLD to perror () and similar
>     functions.
> 
> 
> abort() and all the function wrappers called by assert on failure are also
> cold.

Indeed, most __noreturn__ functions a probably worth having a look at.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]