IPA symver: allow multiple symvers for a definition
authorMartin Liska <mliska@suse.cz>
Mon, 24 Aug 2020 11:21:10 +0000 (13:21 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 26 Aug 2020 08:03:19 +0000 (10:03 +0200)
commit363080bb8bd2cca81dd9e2e774910a8c8226f430
treedbd812c1ccd60680bc8aaaa61140d251e64efc4b
parentd58e7173ef964ddac3ab3ad8cc97de8f9f3b32ee
IPA symver: allow multiple symvers for a definition

gcc/ChangeLog:

* cgraphunit.c (process_symver_attribute): Allow multiple
symver attributes for one symbol.
* doc/extend.texi: Document the change.

gcc/testsuite/ChangeLog:

* lib/target-supports-dg.exp: Add dg-require-symver.
* lib/target-supports.exp: Likewise.
* gcc.dg/ipa/symver1.c: New test.
gcc/cgraphunit.c
gcc/doc/extend.texi
gcc/testsuite/gcc.dg/ipa/symver1.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports-dg.exp
gcc/testsuite/lib/target-supports.exp