[PATCH 0/1] Make __sdidinit unused
Matthew Joyce <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
From: Matt Joyce <[email protected]> Remove dependency on __sdidinit member of struct _reent to check object initialization. Like __sdidinit, the __cleanup member of struct _reent is initialized in the __sinit() function. Checking initialization against __cleanup serves the same purpose and will reduce overhead in the __sfp() function in a follow up patch. Matt Joyce (1): Make __sdidinit unused libgloss/aarch64/syscalls.c | 2 +- libgloss/arm/syscalls.c | 2 +- newlib/libc/include/sys/reent.h | 10 +++++++--- newlib/libc/machine/spu/c99ppe.h | 2 +- newlib/libc/machine/spu/stdio.c | 1 - newlib/libc/reent/reent.c | 2 +- newlib/libc/stdio/findfp.c | 11 ++--------- newlib/libc/stdio/local.h | 6 +++--- newlib/libc/stdio/setvbuf.c | 2 +- newlib/libc/sys/arm/syscalls.c | 2 +- winsup/cygwin/cygtls.cc | 4 ++-- winsup/cygwin/dcrt0.cc | 10 ++++------ winsup/cygwin/thread.cc | 4 ++-- 13 files changed, 26 insertions(+), 32 deletions(-) -- 2.31.1