Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use the correct attributes for ___errno_location | Samuel Holland | 2019-07-10 | 1 | -0/+3 |
| | | | | | | | | | | | 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. | ||||
* | add hidden version of &errno accessor function | Rich Felker | 2018-09-14 | 1 | -0/+11 |
this significantly improves codegen in functions that need to access errno but otherwise have no need for a GOT pointer. we could probably improve it much more by including an inline version of the &errno accessor function, but that depends on having the definitions of struct __pthread and __pthread_self(), which at present would expose a lot more than is appropriate. moving them to a small tls.h later might make this more reasonable. |