[Bug c++/24928] static const objects should go to .rodata

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Fri Nov 18 01:32:00 GMT 2005



------- Comment #3 from gdr at integrable-solutions dot net  2005-11-18 01:31 -------
Subject: Re:   New: Trivial static const objects should go to .rodata

"msharov at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| With the object being initialized at runtime as if it mattered. Because the
| values of the member variables can not be changed after initialization, there
| is no reason to do this at runtime. Because the constructor doesn't do
| anything, this would not conflict with C++'s create-on-call mandate.

Completely agreed.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24928



More information about the Gcc-bugs mailing list