From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6860 invoked by alias); 17 Apr 2012 22:27:31 -0000 Received: (qmail 6850 invoked by uid 22791); 17 Apr 2012 22:27:30 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Apr 2012 22:26:43 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them Date: Tue, 17 Apr 2012 22:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hjl.tools at gmail dot com X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg01452.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46770 --- Comment #88 from H.J. Lu 2012-04-17 22:15:= 04 UTC --- (In reply to comment #86) > > I have seen codes like: > > > > void (*const init_array []) (void) > > =C2=A0 =C2=A0 __attribute__ ((section (".init_array"), aligned (sizeof = (void *)))) =3D > > { > > =C2=A0&init_0, > > =C2=A0&init_1, > > =C2=A0&init_2 > > }; > > > > I don't want to reverse its order. >=20 > We will not reverse that order. Those three entries will all be in the > same input section. I assume init priority will be handled as usual.