This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19662] [FEATURE REQUEST] Need an option preventing any atexit object destructions
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2005 07:17:50 -0000
- Subject: [Bug c++/19662] [FEATURE REQUEST] Need an option preventing any atexit object destructions
- References: <20050128052304.19662.yuri@tsoft.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-01-28 07:17 -------
Subject: Re: New: [FEATURE REQUEST] Need an option preventing any atexit object destructions
"yuri at tsoft dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| For ex. "gcc -no-atexit ..." will avoid any post-run object destructions.
|
| This feature is very useful: if I have very performance critical application and
| all my objects are simple and do not *really* require destructions I may opt for
| this. Benefit: will be less extra stuff inserted by compiler and program will
| run faster with better optimizations.
|
| And often people do not destroy objects anyways.
If your objects are simple and do not need destruction, just don't
define destructors.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19662