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 /include | |
parent | be9ad3004f65b54dd6cc0325315559c72396bc1c (diff) | |
download | glibc-e6a252758cbadb13654e66e1f2445ef6f8a4dea0.tar.gz glibc-e6a252758cbadb13654e66e1f2445ef6f8a4dea0.tar.xz glibc-e6a252758cbadb13654e66e1f2445ef6f8a4dea0.zip |
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 'include')
-rw-r--r-- | include/error.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/error.h b/include/error.h index 9e96262fc5..4db67cba90 100644 --- a/include/error.h +++ b/include/error.h @@ -5,11 +5,11 @@ void __error_internal (int status, int errnum, const char *message, - va_list args, unsigned int mode_flags); + va_list args, unsigned int mode_flags) __COLD; void __error_at_line_internal (int status, int errnum, const char *file_name, unsigned int line_number, const char *message, - va_list args, unsigned int mode_flags); + va_list args, unsigned int mode_flags) __COLD; #endif |