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:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-07 08:55:02 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-07 22:28:25 +0300
commit14fc9be2349259ed4754457775ab4a14069395c5 (patch)
treeeaf5d02d717c4656e413b7b983ea6cdcce7b3452 /newlib/libc/stdio
parent07cf7630957e637755b347888bc4d69e5d51aa71 (diff)
Fix __sglue inititialization
Do not initialize __sglue with the FILE objects of _GLOBAL_REENT to avoid a double use in the !_REENT_SMALL and !_REENT_GLOBAL_STDIO_STREAMS configurations which didn't use a thread-specific reentrancy structure.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/findfp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c
index 6933ff1db..ff6804d19 100644
--- a/newlib/libc/stdio/findfp.c
+++ b/newlib/libc/stdio/findfp.c
@@ -41,11 +41,7 @@ const struct __sFILE_fake __sf_fake_stderr =
__FILE __sf[3];
struct _glue __sglue = {NULL, 3, &__sf[0]};
#else
-#ifdef _REENT_SMALL
struct _glue __sglue = {NULL, 0, NULL};
-#else
-struct _glue __sglue = {NULL, 3, &_GLOBAL_REENT->__sf[0]};
-#endif
#endif
#ifdef _STDIO_BSD_SEMANTICS