* config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
authorMarek Polacek <polacek@redhat.com>
Thu, 20 Jun 2019 17:12:38 +0000 (17:12 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 20 Jun 2019 17:12:38 +0000 (17:12 +0000)
From-SVN: r272514

gcc/ChangeLog
gcc/config/sh/sh.c

index 7deb9d8..5f34d11 100644 (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
index 07d5b3c..dfaeab5 100644 (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;