diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-04-29 16:12:23 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-01 19:33:21 +0200 |
commit | e6a252758cbadb13654e66e1f2445ef6f8a4dea0 (patch) | |
tree | 77062c96855e8d5d81160ffc2b278753b267033d /libio | |
parent | be9ad3004f65b54dd6cc0325315559c72396bc1c (diff) | |
download | glibc-e6a252758cbadb13654e66e1f2445ef6f8a4dea0.zip glibc-e6a252758cbadb13654e66e1f2445ef6f8a4dea0.tar.gz glibc-e6a252758cbadb13654e66e1f2445ef6f8a4dea0.tar.bz2 |
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 <siddhesh@sourceware.org>
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230429131223.2507236-3-bugaevc@gmail.com>
Diffstat (limited to 'libio')
-rw-r--r-- | libio/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |