[cfe-commits] [PATCH] Enable UseInitArray for Android X86/MIPS

Simon Atanasyan satanasyan at mips.com
Thu Nov 15 06:14:37 PST 2012


Hi,

On Thu, Nov 15, 2012 at 8:01 AM, Logan Chien <tzuhsiang.chien at gmail.com> wrote:
> The attached file is the rebased patch to top of tree.  It seems that the
> dynamic linker in Android only supports .init_array and .fini_array, thus we
> should enable -fuse-init-array regardless the GCC version.  It is essential
> for C++ global variables initialization on Android X86 and MIPS.

Now if GCC version is less than 4.7.0 and we build for Android ARM we
do not have to enable -fuse-init-array. Your patch enables
-fuse-init-array regardless the GCC version. So ARM target might be
affected. I do not know is that a serious problem.

--
Simon



More information about the cfe-commits mailing list