On 02/07/2018 07:03 AM, Martin Liška wrote:
Hello.

The refactoring in r251316 changed the logic when 
cgraph_node::record_function_versions
function is called. Suggested patch reverts the logic prior to the revision.

Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
And make check RUNTESTFLAGS="i386.exp" on x86_64 works.

Ready to be installed?
Martin

gcc/cp/ChangeLog:

2018-01-26  Martin Liska  <mli...@suse.cz>

        PR c++/84059.
        * class.c (add_method): Append argument value.
        * cp-tree.h (maybe_version_functions): Add new argument.
        * decl.c (decls_match): Call it if a declaration does not
        have DECL_FUNCTION_VERSIONED.
        (maybe_version_functions): record argument is added.

ok


--
Nathan Sidwell

Reply via email to