[PATCH][ARM] Support arm-android-eabi

Mark Mitchell mark@codesourcery.com
Mon Jul 14 00:44:00 GMT 2008


Doug Kwan (關振德) wrote:

> Thanks for iterating this patch with me so many times :)

Sorry to be making lots of work...

> We can use a eabi.opt I suppose.

Right, that sounds good.

> I chose generic-eabi.h instead of eabi.h because there are other BPABI
> based targets which do not want the new macros. I can certainly drop
> the generic bit.

We already have bpabi.h for all ("generic") Base Platform ABI systems 
(which include bare-metal, RTOS, uClinux, SymbianOS, GNU/Linux, etc.). 
So, I think we can use eabi.h for the "bare-metal and RTOS" category. 
It's not a perfect name, but it matches existing practice in the ARM 
toolchain and elsewhere.

> But this does
> 
> base.h
> 
> #define BASE_FOO ...
> #undef FOO
> #define FOO BASE_FOO
> 
> derived.h
> 
> #define DERIVED_FOO ... /* uses BASE_FOO */
> #undef FOO
> #define FOO DERIVED_FOO

Right; that's why I was suggesting BPABI_LINK_SPEC, for example.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list