[PATCH] Revert behavior to r251316.

Martin Liška mliska@suse.cz
Wed Feb 7 12:03:00 GMT 2018


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  <mliska@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.

gcc/testsuite/ChangeLog:

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

	PR c++/84059.
	* g++.dg/ext/mv26.C: New test.
---
 gcc/cp/class.c                  |  2 +-
 gcc/cp/cp-tree.h                |  2 +-
 gcc/cp/decl.c                   | 14 ++++++--------
 gcc/testsuite/g++.dg/ext/mv26.C | 15 +++++++++++++++
 4 files changed, 23 insertions(+), 10 deletions(-)
 create mode 100644 gcc/testsuite/g++.dg/ext/mv26.C


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Revert-behavior-to-r251316.patch
Type: text/x-patch
Size: 3383 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180207/56e8798f/attachment.bin>


More information about the Gcc-patches mailing list