aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2019-06-20 17:12:38 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2019-06-20 17:12:38 +0000
commitceb76ffc6b65e8e35d6cde1148dc0ac958e4a06c (patch)
treede757618e2e234389a3804e2797ab9e8d3d8200c /gcc/config/sh
parent7ca50393b3bc1c148d865cbc32e72df22ddbc564 (diff)
downloadgcc-ceb76ffc6b65e8e35d6cde1148dc0ac958e4a06c.zip
gcc-ceb76ffc6b65e8e35d6cde1148dc0ac958e4a06c.tar.gz
gcc-ceb76ffc6b65e8e35d6cde1148dc0ac958e4a06c.tar.bz2
* config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
From-SVN: r272514
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 07d5b3c..dfaeab5 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -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;