From 1b062c1ac195e221ff72e03b37d630a4fa1f6dbe Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 11 May 2017 21:51:07 +0000 Subject: attribs.h (sorted_attr_string): Move machine independent functions for target clone support from the i386 port... 2017-05-11 Michael Meissner * 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. From-SVN: r247932 --- gcc/attribs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/attribs.h') diff --git a/gcc/attribs.h b/gcc/attribs.h index 9d3741c..7f13332 100644 --- a/gcc/attribs.h +++ b/gcc/attribs.h @@ -41,4 +41,10 @@ extern tree make_attribute (const char *, const char *, tree); extern struct scoped_attributes* register_scoped_attributes (const struct attribute_spec *, const char *); +extern char *sorted_attr_string (tree); +extern bool common_function_versions (tree, tree); +extern char *make_unique_name (tree, const char *, bool); +extern tree make_dispatcher_decl (const tree); +extern bool is_function_default_version (const tree); + #endif // GCC_ATTRIBS_H -- cgit v1.1