projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9a2b5b
)
symver: fix attribute matching.
author
Martin Liska
<mliska@suse.cz>
Wed, 26 Aug 2020 11:18:14 +0000
(13:18 +0200)
committer
Martin Liska
<mliska@suse.cz>
Wed, 26 Aug 2020 13:42:31 +0000
(15:42 +0200)
gcc/ChangeLog:
* cgraphunit.c (process_symver_attribute): Match only symver
TREE_PURPOSE.
gcc/cgraphunit.c
patch
|
blob
|
history
diff --git
a/gcc/cgraphunit.c
b/gcc/cgraphunit.c
index fa3aec79a48e0d2d0657066841dbf05307fbf929..26d3995a0c0b3babf62b2c024f2bfecd16979b77 100644
(file)
--- 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))),