public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix __sglue inititialization
@ 2022-06-07 19:29 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-06-07 19:29 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=14fc9be2349259ed4754457775ab4a14069395c5
commit 14fc9be2349259ed4754457775ab4a14069395c5
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Tue Jun 7 07:55:02 2022 +0200
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.
Diff:
---
newlib/libc/stdio/findfp.c | 4 ----
1 file changed, 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-07 19:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07 19:29 [newlib-cygwin] Fix __sglue inititialization Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).