Android-x86
Fork
捐款

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-musl-libc: 提交

external/musl/libc


Commit MetaInfo

修訂c225e6c1a4e6a89447cb00a71f50ae00f8f5ec3f (tree)
時間2019-07-11 06:10:59
作者Samuel Holland <samuel@shol...>
CommiterRich Felker

Log Message

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
e13063aad7aee341d278d2a879a76ec7b59b2ad8.

Change Summary

差異

--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -3,6 +3,9 @@
33
44 #include "../../include/errno.h"
55
6+#ifdef __GNUC__
7+__attribute__((const))
8+#endif
69 hidden int *___errno_location(void);
710
811 #undef errno
Show on old repository browser