aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-02-28 13:27:22 +0100
committerMartin Liska <mliska@suse.cz>2022-03-01 10:10:29 +0100
commit6df0c8d417fb33ea130e2957755a60483e9fd692 (patch)
tree0a9cf70f1d60f30e262cbae094ffacfe38955ba4 /gcc/tree.h
parentb88f683e57acb06593959c26c9d78861fcd15cf1 (diff)
downloadgcc-6df0c8d417fb33ea130e2957755a60483e9fd692.zip
gcc-6df0c8d417fb33ea130e2957755a60483e9fd692.tar.gz
gcc-6df0c8d417fb33ea130e2957755a60483e9fd692.tar.bz2
ipa: Improve error handling for target_clone single value
PR ipa/104533 gcc/c-family/ChangeLog: * c-attribs.cc (handle_target_clones_attribute): Use get_target_clone_attr_len and report warning soon. gcc/ChangeLog: * multiple_target.cc (get_attr_len): Move to tree.c. (expand_target_clones): Remove single value checking. * tree.cc (get_target_clone_attr_len): New fn. * tree.h (get_target_clone_attr_len): Likewise. gcc/testsuite/ChangeLog: * g++.target/i386/pr104533.C: New test.
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 95334b0..36ceed5 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -6579,4 +6579,6 @@ extern unsigned fndecl_dealloc_argno (tree);
object or pointer. Otherwise return null. */
extern tree get_attr_nonstring_decl (tree, tree * = NULL);
+extern int get_target_clone_attr_len (tree);
+
#endif /* GCC_TREE_H */