[Bug c++/19662] [FEATURE REQUEST] Need an option preventing any atexit object destructions

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Fri Jan 28 07:17:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list