Hi. There's one obvious fix that I've just noticed.
I'm going to install it. Martin
>From a5d075d595d35cd5d6607bbd9c8b2eb7707ca920 Mon Sep 17 00:00:00 2001 From: Martin Liska <mli...@suse.cz> Date: Wed, 26 Aug 2020 13:18:14 +0200 Subject: [PATCH] symver: fix attribute matching. gcc/ChangeLog: * cgraphunit.c (process_symver_attribute): Match only symver TREE_PURPOSE. --- gcc/cgraphunit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index fa3aec79a48..26d3995a0c0 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -727,6 +727,9 @@ process_symver_attribute (symtab_node *n) .symver foo, bar@V1 .symver foo, baz@V2 */ + const char *purpose = IDENTIFIER_POINTER (TREE_PURPOSE (value)); + if (strcmp (purpose, "symver") != 0) + continue; tree symver = get_identifier_with_length (TREE_STRING_POINTER (TREE_VALUE (TREE_VALUE (value))), -- 2.28.0