This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [google/gcc-4_6_2-mobile] PATCH: PR other/46770: Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them


On Mon, Feb 20, 2012 at 11:31 PM, Jing Yu <jingyu@google.com> wrote:
> Hi H.J.,
>
> I think the patch itself is not enough.
> I compared "AC_DEFUN([gcc_AC_INITFINI_ARRAY]" part (in acinclude.m4)
> of gcc trunk and google/gcc-4_6_2-mobile, and found how
> enable_initfini_array is
> configured is different.
>
> The patch breaks some of our tests. enable_initfini_array should be
> disabled for cross compile by default. But it is not true in our
> branch. Could you please point us all related patches?
>

I missed this backport. There are some additional changes needed for
non-Linux systems:

http://gcc.gnu.org/ml/gcc-cvs/2011-08/msg00978.html
http://gcc.gnu.org/ml/gcc-cvs/2011-08/msg01132.html
http://gcc.gnu.org/ml/gcc-cvs/2012-01/msg00544.html



-- 
H.J.

Attachment: gcc-init-array-check.patch
Description: Text document


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