cgraph.h (symtab_node): Add symver flag.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 30 Nov 2019 21:03:25 +0000 (22:03 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 30 Nov 2019 21:03:25 +0000 (21:03 +0000)
commitd7ddfbcb7fa6e700639c9b916bf8a5ed15600950
tree3e8ad36922e2df05cdc896aec48daa30135163d6
parent65ef05d0b7fb429c5760189e638c441dc3da33f4
cgraph.h (symtab_node): Add symver flag.

2019-11-30  Jan Hubicka  <hubicka@ucw.cz>

* cgraph.h (symtab_node): Add symver flag.
* cgraphunit.c (process_symver_attribute): New.
(process_common_attributes): Use process_symver_attribute.
* lto-cgraph.c (lto_output_node): Stream symver.
(lto_output_varpool_node): Stream symver.
(input_overwrite_node): Stream symver.
(input_varpool_node): Stream symver.
* output.h (do_assemble_symver): Decalre.
* symtab.c (symtab_node::dump_base): Dump symver.
(symtab_node::verify_base): Verify symver.
(symtab_node::resolve_alias): Handle symver.
* varasm.c (do_assemble_symver): New function.
* varpool.c (varpool_node::assemble_aliases): Use it.
* doc/extend.texi: (symver attribute): Document.
* config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.

c-family/ChangeLog:

2019-11-30  Jan Hubicka  <hubicka@ucw.cz>

* c-attribs.c (handle_symver_attribute): New function
(c_common_attributes): Add symver.

From-SVN: r278878
12 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/cgraph.h
gcc/cgraphunit.c
gcc/config/elfos.h
gcc/doc/extend.texi
gcc/lto-cgraph.c
gcc/output.h
gcc/symtab.c
gcc/varasm.c
gcc/varpool.c