public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix file IO for RTEMS on MicroBlaze
@ 2021-07-21 18:00 Alex White
  2021-07-21 18:00 ` [PATCH 1/1] libc/include/sys/config.h: Undef _REENT_SMALL " Alex White
  2021-07-22  7:35 ` [PATCH 0/1] Fix file IO " Corinna Vinschen
  0 siblings, 2 replies; 3+ messages in thread
From: Alex White @ 2021-07-21 18:00 UTC (permalink / raw)
  To: newlib; +Cc: Alex White

Hi,

This patchset undefs _REENT_SMALL for RTEMS on MicroBlaze.

I noticed that _REENT_SMALL is defined for MicroBlaze both in
configure.host and in sys/config.h. This was not an issue for me since
I am doing an RTEMS build, but it was a little confusing that it was
found in both places.

Alex

Alex White (1):
  libc/include/sys/config.h: Undef _REENT_SMALL for RTEMS on MicroBlaze

 newlib/libc/include/sys/config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] libc/include/sys/config.h: Undef _REENT_SMALL for RTEMS on MicroBlaze
  2021-07-21 18:00 [PATCH 0/1] Fix file IO for RTEMS on MicroBlaze Alex White
@ 2021-07-21 18:00 ` Alex White
  2021-07-22  7:35 ` [PATCH 0/1] Fix file IO " Corinna Vinschen
  1 sibling, 0 replies; 3+ messages in thread
From: Alex White @ 2021-07-21 18:00 UTC (permalink / raw)
  To: newlib; +Cc: Alex White

RTEMS does not expect _REENT_SMALL.
---
 newlib/libc/include/sys/config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 4bc8d29bf..b9dff88ff 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -127,7 +127,7 @@
 #endif
 
 /* Configure small REENT structure for Xilinx MicroBlaze platforms */
-#if defined (__MICROBLAZE__)
+#if defined (__MICROBLAZE__) && !defined(__rtems__)
 #ifndef _REENT_SMALL
 #define _REENT_SMALL
 #endif
-- 
2.27.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] Fix file IO for RTEMS on MicroBlaze
  2021-07-21 18:00 [PATCH 0/1] Fix file IO for RTEMS on MicroBlaze Alex White
  2021-07-21 18:00 ` [PATCH 1/1] libc/include/sys/config.h: Undef _REENT_SMALL " Alex White
@ 2021-07-22  7:35 ` Corinna Vinschen
  1 sibling, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2021-07-22  7:35 UTC (permalink / raw)
  To: newlib

On Jul 21 13:00, Alex White wrote:
> Hi,
> 
> This patchset undefs _REENT_SMALL for RTEMS on MicroBlaze.
> 
> I noticed that _REENT_SMALL is defined for MicroBlaze both in
> configure.host and in sys/config.h. This was not an issue for me since
> I am doing an RTEMS build, but it was a little confusing that it was
> found in both places.
> 
> Alex
> 
> Alex White (1):
>   libc/include/sys/config.h: Undef _REENT_SMALL for RTEMS on MicroBlaze
> 
>  newlib/libc/include/sys/config.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> -- 
> 2.27.0

Pushed.

Thanks,
Corinna


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-22  7:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 18:00 [PATCH 0/1] Fix file IO for RTEMS on MicroBlaze Alex White
2021-07-21 18:00 ` [PATCH 1/1] libc/include/sys/config.h: Undef _REENT_SMALL " Alex White
2021-07-22  7:35 ` [PATCH 0/1] Fix file IO " Corinna Vinschen

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).