https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117650
--- Comment #3 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #2) > I'm less sure about the libc functions. Glibc doesn't mark them as cold. commit e3b0b3484cac61f9eae373751ac6eaf816a2c9c3 Author: Noah Goldstein <goldstein....@gmail.com> Date: Mon Jul 29 15:34:33 2024 +0800 stdlib: Mark `abort` as `cold` This helps HotColdSplitting in GCC/LLVM. Thought about doing `exit` as well since its only called once per process, but since its easy to imagine a hot path leading into `exit(0)`, its less clear if its profitable. Reviewed-by: Carlos O'Donell <car...@redhat.com> commit f6f904745942540c7ea99c403b75b695ee560035 Author: Noah Goldstein <goldstein....@gmail.com> Date: Fri Jul 26 16:35:13 2024 +0800 assert: Mark `__assert_fail` as `cold` This helps compilers split the codegen for setting up the arguments (`__expression`, `__filename`, etc...) from the potentially hot cold where the `assert` is to a presumably cold region on the assertion failure path. Reviewed-by: Florian Weimer <fwei...@redhat.com> Reviewed-by: Sam James <s...@gentoo.org>