mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 13:30:06 +00:00
e6a252758c
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>
16 lines
373 B
C
16 lines
373 B
C
#ifndef _ERROR_H
|
|
#include <misc/error.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
void
|
|
__error_internal (int status, int errnum, const char *message,
|
|
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) __COLD;
|
|
|
|
#endif
|