public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-modules] symver: fix attribute matching.
@ 2020-08-28 16:06 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2020-08-28 16:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2236c45479e4c01a6ac68547bcdfe3065481df0f

commit 2236c45479e4c01a6ac68547bcdfe3065481df0f
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Aug 26 13:18:14 2020 +0200

    symver: fix attribute matching.
    
    gcc/ChangeLog:
    
            * cgraphunit.c (process_symver_attribute): Match only symver
            TREE_PURPOSE.

Diff:
---
 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))),


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-28 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 16:06 [gcc/devel/c++-modules] symver: fix attribute matching Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).