From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28252 invoked by alias); 24 Sep 2005 17:43:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27936 invoked by uid 48); 24 Sep 2005 17:42:54 -0000 Date: Sat, 24 Sep 2005 17:43:00 -0000 Message-ID: <20050924174254.27935.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050127222428.19661.yuri@tsoft.com> References: <20050127222428.19661.yuri@tsoft.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/19661] unnecessary atexit calls emitted for static objects with empty destructors X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg02931.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-24 17:42 ------- Hmm, the easy way to to have a pass which finds all the atexit calls and sees if the function which is passed is a const function and if it is, then just remove the atexit call. -- What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |tree-optimization http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19661