diff options
-rw-r--r-- | gcc/cgraphunit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index fa3aec7..26d3995 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))), |