* config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.

From-SVN: r272514
This commit is contained in:
Marek Polacek 2019-06-20 17:12:38 +00:00 committed by Marek Polacek
parent 7ca50393b3
commit ceb76ffc6b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-06-20 Marek Polacek <polacek@redhat.com>
* config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
2019-06-20 Michael Meissner <meissner@linux.ibm.com>
* config/rs6000/rs6000.md (isa attribute): Add support for

View File

@ -8646,7 +8646,7 @@ sh2a_function_vector_p (tree func)
return false;
for (tree list = SH_ATTRIBUTES (func); list; list = TREE_CHAIN (list))
if (is_attribute_p ("function_vector", TREE_PURPOSE (list)))
if (is_attribute_p ("function_vector", get_attribute_name (list)))
return true;
return false;