From f7486ecb3c450efc331551dd2f61d64a91a8f275 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 14 Mar 2017 15:24:49 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/multiple_target.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) 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 (); -- 2.7.4