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:
Justine Tunney 2025-01-02 08:07:15 -08:00
parent f24c854b28
commit fde03f8487
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
9 changed files with 106 additions and 61 deletions

View file

@ -41,8 +41,8 @@ struct Procs {
extern struct Procs __proc;
void __proc_lock(void) libcesque;
void __proc_unlock(void) libcesque;
void __proc_lock(void) dontthrow;
void __proc_unlock(void) dontthrow;
int64_t __proc_handle(int) libcesque;
int64_t __proc_search(int) libcesque;
struct Proc *__proc_new(void) libcesque;