Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Joyce <matthew.joyce@embedded-brains.de>2022-02-22 13:18:38 +0300
committerCorinna Vinschen <corinna@vinschen.de>2022-02-22 14:38:46 +0300
commit44b60f0c4ba597c55dcac4f2d3119a3055c80ba1 (patch)
treee5286802e8b24fcbb7437f00163daaab0f439f2c /libgloss/arm
parent054b00d96a81ca1169a1dd2d63d79b7ac03919ac (diff)
Make __sdidinit unused
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.
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c
index fc394f94b..710a741ee 100644
--- a/libgloss/arm/syscalls.c
+++ b/libgloss/arm/syscalls.c
@@ -89,7 +89,7 @@ extern void __sinit (struct _reent *);
#define CHECK_INIT(ptr) \
do \
{ \
- if ((ptr) && !(ptr)->__sdidinit) \
+ if ((ptr) && !(ptr)->__cleanup) \
__sinit (ptr); \
} \
while (0)