[PATCH 2/2] Add and use _REENT_GLOBAL_ATEXIT

Sebastian Huber sebastian.huber@embedded-brains.de
Wed May 8 07:19:00 GMT 2013


On 05/07/2013 11:36 PM, Joel Sherrill wrote:
> First, I am thrilled to see the reent structure shrinking.

Yes, its noticeable.  On PowerPC approximately 400 bytes or 37%.

>
> But binary compatibility has been mentioned.
> Binary compatibility with what?  What targets?

All targets using "newlib/libc/include/sys/reent.h".

>
> Except for Cygwin and Linux, I would think most users are
> compiling from source. And even if not, I wouldn't think it
> was cool to directly access the reent structure anyway. If
> we added, deleted or reordered the fields, things would break.
>
> Just curious what this use case is.

This patch removes two fields from the middle of struct _reent, thus the 
structure layout changes.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Newlib mailing list