This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH, ARM] Don't use __thumb2__ to select _REENT_SMALL
- From: Paul Brook <paul at codesourcery dot com>
- To: Richard Earnshaw <rearnsha at arm dot com>
- Cc: newlib at sourceware dot org
- Date: Tue, 2 Jun 2009 14:46:33 +0100
- Subject: Re: [PATCH, ARM] Don't use __thumb2__ to select _REENT_SMALL
- References: <1243947275.26547.21.camel@pc960.cambridge.arm.com>
On Tuesday 02 June 2009, Richard Earnshaw wrote:
> This cost me at least a couple of hours debugging at the weekend; I was
> trying to work out why my file handles were all corrupted when compiling
> code for Thumb-2. It turns out that Newlib's config.h was changing the
> ABI depending on the instruction set it was compiling for -- a big No
> No, since code is supposed to interwork freely between the two ISAs!
I'm fairly sure I tested this, and concluded that it had no effect on the
external library ABI. In fact I think I fixed bugs related to this.
i.e. this only matters if you're trying to compile part of the library as
Thumb-2 and part as ARM. Do we really care about that? Or did I miss
something?
Paul