Do not ICE on an invalid input for MV.
authorMartin Liska <mliska@suse.cz>
Tue, 14 Mar 2017 14:24:49 +0000 (15:24 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 14 Mar 2017 14:24:49 +0000 (14:24 +0000)
2017-03-14  Martin Liska  <mliska@suse.cz>

* multiple_target.c (expand_target_clones): Bail out for
an invalid attribute.

From-SVN: r246124

gcc/ChangeLog
gcc/multiple_target.c

index 7c38be3c7fe4e29dc267eb2711b312d782c6fd92..056609c95ff973ca4854d92cb50944c082b44dae 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-14  Martin Liska  <mliska@suse.cz>
+
+       * multiple_target.c (expand_target_clones): Bail out for
+       an invalid attribute.
+
 2017-03-14  Richard Biener  <rguenther@suse.de>
 
        * alias.c (struct alias_set_entry): Pack properly.
index 427c655c8aeaae2a7c4afc11a57bc9162d343235..2ee6a9591ba333776be688c1a25539e719c8bd17 100644 (file)
@@ -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 ();