提交 c225e6c1 编写于 作者: S Samuel Holland 提交者: Rich Felker

use the correct attributes for ___errno_location

In the public header, __errno_location is declared with the "const"
attribute, conditional on __GNUC__. Ensure that its internal alias has
the same attributes.

Maintainer's note: This change also fixes a regression in quality of
code generation -- multiple references to errno in a single function
started generating multiple calls again -- introduced by commit
e13063aa.
上级 05eb8ea0
......@@ -3,6 +3,9 @@
#include "../../include/errno.h"
#ifdef __GNUC__
__attribute__((const))
#endif
hidden int *___errno_location(void);
#undef errno
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册