This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][ARM]Use ACLE compiler macros for determining the available features


On Mar 26 17:35, Richard Earnshaw wrote:
> GCC has for a number of years provides a set of pre-defined macros for
> use with determining the ISA and features of the target during
> pre-processing.  However, the design was always somewhat cumbersome in
> that each new architecture revision created a new define and then
> removed the previous one.  This meant that it was necessary to keep
> updating the support code simply to recognise a new architecture being
> added.
> 
> The ACLE specification
> (http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.set.swdev/index.html)
> provides a much more suitable interface and GCC has supported this since
> gcc-4.8.
> 
> This patch makes use of the ACLE pre-defines to map to the internal
> feature definitions.  To support older versions of GCC a compatibility
> header is provided that maps the traditional pre-defines onto the new
> ACLE ones.
> 
> Long term we may want to retire the internal pre-defines and move to
> using the ACLE features directly; but that's for another day.
> 
> I'll commit this in ~24 hours if I don't hear any objections.

Sounds good.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpifqkXDdTzB.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]