glibc/include/error.h
Sergey Bugaev e6a252758c 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>
2023-05-01 19:33:21 +02:00

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