diff options
author | Martin Liska <mliska@suse.cz> | 2017-03-14 15:24:49 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-03-14 14:24:49 +0000 |
commit | f7486ecb3c450efc331551dd2f61d64a91a8f275 (patch) | |
tree | 3ec5f1788fd84573bd3b745a129ed0aff9197e72 /gcc/multiple_target.c | |
parent | 34e8234204cb51e65f0e4b325634208a227cc8f3 (diff) | |
download | gcc-f7486ecb3c450efc331551dd2f61d64a91a8f275.zip gcc-f7486ecb3c450efc331551dd2f61d64a91a8f275.tar.gz gcc-f7486ecb3c450efc331551dd2f61d64a91a8f275.tar.bz2 |
Do not ICE on an invalid input for MV.
2017-03-14 Martin Liska <mliska@suse.cz>
* multiple_target.c (expand_target_clones): Bail out for
an invalid attribute.
From-SVN: r246124
Diffstat (limited to 'gcc/multiple_target.c')
-rw-r--r-- | gcc/multiple_target.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/multiple_target.c b/gcc/multiple_target.c index 427c655..2ee6a959 100644 --- a/gcc/multiple_target.c +++ b/gcc/multiple_target.c @@ -303,10 +303,7 @@ expand_target_clones (struct cgraph_node *node, bool definition) if (!targetm.target_option.valid_attribute_p (new_node->decl, NULL, TREE_VALUE (attributes), 0)) - { - input_location = saved_loc; - continue; - } + return false; input_location = saved_loc; decl2_v = new_node->function_version (); |