From ceb76ffc6b65e8e35d6cde1148dc0ac958e4a06c Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 20 Jun 2019 17:12:38 +0000 Subject: [PATCH] * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name. From-SVN: r272514 --- gcc/ChangeLog | 4 ++++ gcc/config/sh/sh.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7deb9d8a7aa..5f34d11c843 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-06-20 Marek Polacek + + * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name. + 2019-06-20 Michael Meissner * config/rs6000/rs6000.md (isa attribute): Add support for diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 07d5b3c1df5..dfaeab55142 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; -- 2.30.2