This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add Android related compilation options and multilib options
Ian Lance Taylor wrote:
>> Why don't you add android as a os variant and configure
>> for a arm-eabi-android target instead?
>
> That is what Doug Kwan proposed originally, and Mark Mitchell said this:
>
> http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01795.html
Well, ultimately, this is a question for an ARM backend maintainer, if a
dispute needs to be resolved.
But, my feeling is that far too many things in GCC are determined at
compile-time. GCC is the only compiler that requires that you pick at
compile-time what RTOS you're targeting, and that's not a feature. Some
compilers can even switch between architecture (e.g., ARM vs. MIPS) with
a compile-time option. So, we should be making GCC more dynamic, not
less dynamic, and adding -mandroid is a step towards that. If we were
to have an arm-android configuration, it should just be arm-eabi with
-mandroid turned on by default.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713