This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/69981] -f[no]keep-static-consts has no effect


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]