[PATCH 2/2] IPA symver: support visibility and static symbols.

Martin Liska mliska@suse.cz
Mon Aug 24 11:54:16 GMT 2020


gcc/ChangeLog:

	* cgraphunit.c (process_symver_attribute): Remove checks that
	are not needed now.
	(cgraph_node::assemble_thunks_and_aliases): Change second
	argument to decl.
	* config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): Add new
	VISIBILITY parameter.
	* doc/extend.texi: Document that .symver supports visibility.
	* symtab.c (symtab_node::verify_base): Remove checks that
	are not needed now.
	* varasm.c (do_assemble_symver): Detect visibility .symver
	directive argument.
	* varpool.c (varpool_node::assemble_aliases): Change second
	argument to decl.

gcc/testsuite/ChangeLog:

	* gcc.dg/ipa/symver2.c: New test.
	* gcc.dg/ipa/symver3.c: New test.
---
 gcc/cgraphunit.c                   | 15 +--------------
 gcc/config/elfos.h                 | 20 +++++++++++---------
 gcc/doc/extend.texi                |  3 +--
 gcc/symtab.c                       | 16 ----------------
 gcc/testsuite/gcc.dg/ipa/symver2.c |  9 +++++++++
 gcc/testsuite/gcc.dg/ipa/symver3.c | 13 +++++++++++++
 gcc/varasm.c                       | 12 ++++++++++--
 gcc/varpool.c                      |  3 +--
 8 files changed, 46 insertions(+), 45 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/ipa/symver2.c
 create mode 100644 gcc/testsuite/gcc.dg/ipa/symver3.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-IPA-symver-support-visibility-and-static-symbols.patch
Type: text/x-patch
Size: 6097 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200824/78845d45/attachment-0001.bin>


More information about the Gcc-patches mailing list