From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4747 invoked by alias); 16 Sep 2012 14:39:19 -0000 Received: (qmail 4737 invoked by uid 22791); 16 Sep 2012 14:39:18 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_DZ 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; Sun, 16 Sep 2012 14:39:06 +0000 From: "pedzsan at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54601] AIX uses atexit which causes unloading of shared modules to break Date: Sun, 16 Sep 2012 14:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pedzsan at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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" 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-09/txt/msg01219.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54601 --- Comment #1 from Perry Smith 2012-09-16 14:39:05 UTC --- Created attachment 28201 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28201 Educational program demonstrating when atexit is used. Run it without an argument, the function that declares the static is not called -- thus the DTOR is not registered. Run it with an argument to call the function that declares the static.