https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53896
--- Comment #3 from Paul Eggert <eggert at gnu dot org> --- (In reply to Martin Liška from comment #2) > it's still up to user to mark the function as pure. Thanks for looking into it. We have worked around the problem in GNU Emacs by avoiding the -Wsuggest-attribute=pure option. It might be helpful to document this limitation of -Wsuggest-attribute=pure, and perhaps the option should even be deprecated due to its limited utility.