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

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

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