This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/69981] -f[no]keep-static-consts has no effect
- From: "equinox-gccbugs at diac24 dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Feb 2016 14:54:42 +0000
- Subject: [Bug c/69981] -f[no]keep-static-consts has no effect
- Auto-submitted: auto-generated
- References: <bug-69981-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981
--- Comment #3 from David L. <equinox-gccbugs at diac24 dot net> ---
Poking around a bit, in wrapup_global_declaration_2() in gcc/toplev.c, the
check for
else if (TREE_READONLY (decl) && !TREE_PUBLIC (decl)
&& (optimize || !flag_keep_static_consts
  || DECL_ARTIFICIAL (decl)))