Hi,<br><br>  Do you mean that it will be better to commit the attached patch to LLVM, and revert this commit (r168309) from Clang?<br><br>  I'm not sure if whether it is a good idea or not.  For ARM, it is clear that when we are using AAPCS ABI then we should use .init_array.  But on X86 and MIPS, it is difficult to decide whether we should use .init_array or not.  This is the reason why -use-init-array option was added.  On the other hand, I agree that fixing this issue in LLVM side gives an advantage that all programming language using @llvm.global_ctors can work on Android without the -use-init-array option.  I'm OK with both options.  What do you think?  Thanks.<br>
<br>Sincerely,<br>Logan<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 7:44 AM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, right, but enabled differently. My point is maybe we should use<br>
that "different way" instead?<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Nov 20, 2012 at 10:21 AM, Logan Chien <<a href="mailto:tzuhsiang.chien@gmail.com">tzuhsiang.chien@gmail.com</a>> wrote:<br>
> Maybe my wordings are not very good.  In fact, this patch enables<br>
> .init_array for every android targets.  I only listed MIPS and x86, because<br>
> ARM has used .init_array before this commit.  Thanks.<br>
><br>
> Logan<br>
><br>
><br>
><br>
> On Tue, Nov 20, 2012 at 9:55 AM, Anton Korobeynikov<br>
> <<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>> wrote:<br>
>><br>
>> Hi Logan,<br>
>><br>
>> > Enable -fuse-init-array for Android X86/MIPS.<br>
>> Can't we make this default in the backend for all android targets?<br>
>><br>
>> --<br>
>> With best regards, Anton Korobeynikov<br>
>> Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
><br>
><br>
<br>
<br>
<br>
--<br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</div></div></blockquote></div><br></div>