mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 19:28:29 +00:00
Remove leaf attribute where appropriate
This change fixes a bug where gcc assumed thread synchronization such as pthread_cond_wait() wouldn't alter static variables, because the headers were using __attribute__((__leaf__)) inappropriately.
This commit is contained in:
parent
f24c854b28
commit
fde03f8487
9 changed files with 106 additions and 61 deletions
|
@ -18,9 +18,9 @@ struct CxaAtexitBlocks {
|
|||
|
||||
extern struct CxaAtexitBlocks __cxa_blocks;
|
||||
|
||||
void __cxa_lock(void) libcesque;
|
||||
void __cxa_unlock(void) libcesque;
|
||||
void __cxa_thread_finalize(void) libcesque;
|
||||
void __cxa_lock(void) dontthrow;
|
||||
void __cxa_unlock(void) dontthrow;
|
||||
void __cxa_thread_finalize(void) dontthrow;
|
||||
void __cxa_printexits(FILE *, void *) libcesque;
|
||||
int __cxa_thread_atexit_impl(void *, void *, void *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue