This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249390 - in /branches/ibm/gcc-7-branch/gcc: Ch...
- From: meissner at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 19 Jun 2017 21:58:28 -0000
- Subject: r249390 - in /branches/ibm/gcc-7-branch/gcc: Ch...
Author: meissner
Date: Mon Jun 19 21:58:27 2017
New Revision: 249390
URL: https://gcc.gnu.org/viewcvs?rev=249390&root=gcc&view=rev
Log:
[gcc]
2017-06-19 Michael Meissner <meissner@linux.vnet.ibm.com>
Back port from trunk
2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
* attribs.h (sorted_attr_string): Move machine independent
functions for target clone support from the i386 port to common
code. Rename ix86_function_versions to common_function_versions.
Rename make_name to make_unique_name.
(common_function_versions): Likewise.
(make_unique_name): Likewise.
(make_dispatcher_decl): Likewise.
(is_function_default_version): Likewise.
* attribs.c (attr_strcmp): Likewise.
(sorted_attr_string): Likewise.
(common_function_versions): Likewise.
(make_unique_name): Likewise.
(make_dispatcher_decl): Likewise.
(is_function_default_version): Likewise.
* config/i386/i386.c (attr_strcmp): Likewise.
(sorted_attr_string): Likewise.
(ix86_function_versions): Likewise.
(make_name): Likewise.
(make_dispatcher_decl): Likewise.
(is_function_default_version): Likewise.
(TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
Back port from trunk
2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
* config/rs6000/rs6000.c (toplevel): Include attribs.h.
(CLONE_*): New constants to define the processors we can generate
code for with the target_clone attribute.
(rs6000_clone_map): New array to identify which clone processors
the current program is running on.
(TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
target_clone attribute.
(TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
(TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
(TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
(cpu_expand_builtin): Add support for target_clone attribute.
(rs6000_valid_attribute_p): Allow "default" attribute.
(get_decl_name): New debug function to simplify printing the
current function name in debugging statements.
(rs6000_clone_priority): New functions to support the target_clone
attribute, and be able to generate code to switch between ISA 2.05
through ISA 3.0 (power6 through power9).
(rs6000_compare_version_priority): Likewise.
(rs6000_get_function_versions_dispatcher): Likewise.
(make_resolver_func): Likewise.
(add_condition_to_bb): Likewise.
(dispatch_function_versions): Likewise.
(rs6000_generate_version_dispatcher_body): Likewise.
(rs6000_can_inline_p): Call get_decl_name for debugging usage.
(fusion_gpr_load_p): Fix a spacing issue.
* doc/extend.texi (Common Function Attributes): Document that the
PowerPC supports the target_clone attribute.
[gcc/testsuite]
2017-06-19 Michael Meissner <meissner@linux.vnet.ibm.com>
Back port from trunk
2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc.target/powerpc/clone1.c: New test.
Added:
branches/ibm/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/clone1.c
- copied unchanged from r249381, trunk/gcc/testsuite/gcc.target/powerpc/clone1.c
Modified:
branches/ibm/gcc-7-branch/gcc/ChangeLog.ibm
branches/ibm/gcc-7-branch/gcc/attribs.c
branches/ibm/gcc-7-branch/gcc/attribs.h
branches/ibm/gcc-7-branch/gcc/config/i386/i386.c
branches/ibm/gcc-7-branch/gcc/config/rs6000/rs6000.c
branches/ibm/gcc-7-branch/gcc/doc/extend.texi
branches/ibm/gcc-7-branch/gcc/testsuite/ChangeLog.ibm