mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Add dontthrow
attribute to most libc functions
This will help C++ code that uses exceptions to be tinier. For example, this change shaves away 1000 lines of assembly code from LLVM's libcxx, which is 0.7% of all assembly instructions in the entire library.
This commit is contained in:
parent
cb19e172da
commit
eeb20775d2
103 changed files with 1455 additions and 1456 deletions
|
@ -97,24 +97,24 @@ extern struct Dll *_pthread_list;
|
|||
extern struct PosixThread _pthread_static;
|
||||
extern _Atomic(pthread_key_dtor) _pthread_key_dtor[PTHREAD_KEYS_MAX];
|
||||
|
||||
int _pthread_atfork(atfork_f, atfork_f, atfork_f);
|
||||
int _pthread_reschedule(struct PosixThread *);
|
||||
int _pthread_atfork(atfork_f, atfork_f, atfork_f) libcesque;
|
||||
int _pthread_reschedule(struct PosixThread *) libcesque;
|
||||
int _pthread_setschedparam_freebsd(int, int, const struct sched_param *);
|
||||
int _pthread_tid(struct PosixThread *);
|
||||
intptr_t _pthread_syshand(struct PosixThread *);
|
||||
long _pthread_cancel_ack(void);
|
||||
void _pthread_decimate(void);
|
||||
void _pthread_free(struct PosixThread *, bool);
|
||||
void _pthread_lock(void);
|
||||
void _pthread_onfork_child(void);
|
||||
void _pthread_onfork_parent(void);
|
||||
void _pthread_onfork_prepare(void);
|
||||
void _pthread_ungarbage(void);
|
||||
void _pthread_unkey(struct CosmoTib *);
|
||||
void _pthread_unlock(void);
|
||||
void _pthread_unref(struct PosixThread *);
|
||||
void _pthread_unwind(struct PosixThread *);
|
||||
void _pthread_zombify(struct PosixThread *);
|
||||
int _pthread_tid(struct PosixThread *) libcesque;
|
||||
intptr_t _pthread_syshand(struct PosixThread *) libcesque;
|
||||
long _pthread_cancel_ack(void) libcesque;
|
||||
void _pthread_decimate(void) libcesque;
|
||||
void _pthread_free(struct PosixThread *, bool) libcesque;
|
||||
void _pthread_lock(void) libcesque;
|
||||
void _pthread_onfork_child(void) libcesque;
|
||||
void _pthread_onfork_parent(void) libcesque;
|
||||
void _pthread_onfork_prepare(void) libcesque;
|
||||
void _pthread_ungarbage(void) libcesque;
|
||||
void _pthread_unkey(struct CosmoTib *) libcesque;
|
||||
void _pthread_unlock(void) libcesque;
|
||||
void _pthread_unref(struct PosixThread *) libcesque;
|
||||
void _pthread_unwind(struct PosixThread *) libcesque;
|
||||
void _pthread_zombify(struct PosixThread *) libcesque;
|
||||
|
||||
forceinline pureconst struct PosixThread *_pthread_self(void) {
|
||||
return (struct PosixThread *)__get_tls()->tib_pthread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue