Make target_clones resolver fn static if possible.
authorMartin Liska <mliska@suse.cz>
Wed, 25 Mar 2020 10:03:39 +0000 (11:03 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 25 Mar 2020 10:03:39 +0000 (11:03 +0100)
commit724ec02c2c6d1b79788be77f68ebb6ca7b5b6acd
tree9f339a0ee3d2abe45c3ba1eaed8881c2b6d4a1e1
parent0fb0240a051df91d3c24385d1d3c17548b266544
Make target_clones resolver fn static if possible.

PR target/93274
PR ipa/94271
* config/i386/i386-features.c (make_resolver_func): Drop
public flag for resolver.
* config/rs6000/rs6000.c (make_resolver_func): Add comdat
group for resolver and drop public flag if possible.
* multiple_target.c (create_dispatcher_calls): Drop unique_name
and resolution as we want to enable LTO privatization of the default
symbol.
PR target/93274
PR ipa/94271
* gcc.target/i386/pr81213-2.c: New test.
* gcc.target/i386/pr81213.c: Add additional source.
* gcc.dg/lto/pr94271_0.c: New test.
* gcc.dg/lto/pr94271_1.c: New test.
gcc/ChangeLog
gcc/config/i386/i386-features.c
gcc/config/rs6000/rs6000.c
gcc/multiple_target.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr94271_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr94271_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr81213-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr81213.c