From 5e7aa55549fabeb4c7fc4b8339dba210c49614d0 Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 14 Mar 2017 11:16:51 +0100 Subject: [PATCH] Do not ICE on an invalid input for MV. gcc/ChangeLog: 2017-03-14 Martin Liska * multiple_target.c (expand_target_clones): Bail out for an invalid attribute. --- gcc/multiple_target.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gcc/multiple_target.c b/gcc/multiple_target.c index 7b735ae81ae..1e02116a2db 100644 --- a/gcc/multiple_target.c +++ b/gcc/multiple_target.c @@ -296,10 +296,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.11.1