From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3699 invoked by alias); 9 Oct 2007 01:46:37 -0000 Received: (qmail 3685 invoked by uid 48); 9 Oct 2007 01:46:28 -0000 Date: Tue, 09 Oct 2007 01:46:00 -0000 Subject: [Bug target/33704] New: AIX runs c++ constructors in incorrect order X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ajd at gentrack dot com" 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: 2007-10/txt/msg00718.txt.bz2 On AIX global C++ constructors are run in the order that modules are loaded at runtime. It does not take into account dependencies between the modules. e.g. if MAIN depends on LIB1, the global constructors in MAIN are run before the global constructors for LIB1. It is expected that global C++ constructors in a linked library are run before constructors in modules that depend on these libraries. e.g. if MAIN depends on LIB1, it is expected that constructors in LIB1 are run before the constructors for MAIN. -- Summary: AIX runs c++ constructors in incorrect order Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ajd at gentrack dot com GCC target triplet: powerpc-ibm-aix5.2.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33704