From: Marek Polacek Date: Thu, 20 Jun 2019 17:12:38 +0000 (+0000) Subject: * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name. X-Git-Tag: misc/cutover-git~4669 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceb76ffc6b65e8e35d6cde1148dc0ac958e4a06c;p=thirdparty%2Fgcc.git * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name. From-SVN: r272514 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7deb9d8a7aaf..5f34d11c8435 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 07d5b3c1df58..dfaeab551428 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;