diff options
author | Martin Liska <mliska@suse.cz> | 2022-02-28 13:27:22 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-03-01 10:10:29 +0100 |
commit | 6df0c8d417fb33ea130e2957755a60483e9fd692 (patch) | |
tree | 0a9cf70f1d60f30e262cbae094ffacfe38955ba4 /gcc/tree.h | |
parent | b88f683e57acb06593959c26c9d78861fcd15cf1 (diff) | |
download | gcc-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |