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: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Aug 2017 15:34:26 +0000
- Subject: [Bug c/69981] -f[no]keep-static-consts has no effect
- Auto-submitted: auto-generated
- References: <bug-69981-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to David L. from comment #6)
> Created attachment 37808 [details]
> patch (gcc-5.3.0)
>
> patch attached (probably makes the user's PC explode and burns down their
> house)
>
> varpool_node::finalize_decl (tree decl)
> - node->force_output = true;
> + node->force_output = !TREE_READONLY (decl) || flag_keep_static_consts;
Patches go to the gcc-patches mailing list