From: Martin Liska Date: Tue, 14 Mar 2017 14:24:49 +0000 (+0100) Subject: Do not ICE on an invalid input for MV. X-Git-Tag: upstream/12.2.0~40703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7486ecb3c450efc331551dd2f61d64a91a8f275;p=platform%2Fupstream%2Fgcc.git Do not ICE on an invalid input for MV. 2017-03-14 Martin Liska * multiple_target.c (expand_target_clones): Bail out for an invalid attribute. From-SVN: r246124 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c38be3..056609c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-03-14 Martin Liska + + * multiple_target.c (expand_target_clones): Bail out for + an invalid attribute. + 2017-03-14 Richard Biener * alias.c (struct alias_set_entry): Pack properly. 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 ();