From e6a252758cbadb13654e66e1f2445ef6f8a4dea0 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sat, 29 Apr 2023 16:12:23 +0300 Subject: Mark various cold functions as __COLD GCC docs explicitly list perror () as a good candidate for using __attribute__ ((cold)). So apply __COLD to perror () and similar functions. Reviewed-by: Siddhesh Poyarekar Signed-off-by: Sergey Bugaev Message-Id: <20230429131223.2507236-3-bugaevc@gmail.com> --- libio/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio') diff --git a/libio/stdio.h b/libio/stdio.h index 45ddafd..2387590 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -859,7 +859,7 @@ extern int ferror_unlocked (FILE *__stream) __THROW __wur; This function is a possible cancellation point and therefore not marked with __THROW. */ -extern void perror (const char *__s); +extern void perror (const char *__s) __COLD; #ifdef __USE_POSIX -- cgit v1.1