From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10038 invoked by alias); 1 Oct 2014 16:46:44 -0000 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 Received: (qmail 9522 invoked by uid 48); 1 Oct 2014 16:46:38 -0000 From: "marcelo at brs dot ind.br" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them Date: Wed, 01 Oct 2014 16:46: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-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marcelo at brs dot ind.br 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-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg00069.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770 Marcelo Richter changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marcelo at brs dot ind.br --- Comment #105 from Marcelo Richter --- Any news on that? With gcc 4.8.4 (ARM target), init_priority attribute doesn't work with a static library and main C++ file. I have a class declared in library with "__attribute__ ((init_priority (101)))". In main project, another class declared with no attributes. The main class constructor is called BEFORE library constructor (with high priority attribute).