Make function assembly more independent.
authorMichael Ploujnikov <michael.ploujnikov@oracle.com>
Fri, 30 Nov 2018 22:20:43 +0000 (22:20 +0000)
committerMichael Ploujnikov <plouj@gcc.gnu.org>
Fri, 30 Nov 2018 22:20:43 +0000 (22:20 +0000)
commitb75255a9b11ae672e569966860090d70ff10ffca
tree55a027d11ff28e72cff913ce39f05def9cd7cd11
parentd5b5f5ad904650d992b4acc967c6dd94d1dc4f12
Make function assembly more independent.

This is achieved by having clone_function_name assign unique clone
numbers for each function independently.

gcc:

* cgraphclones.c: Replaced clone_fn_id_num with clone_fn_ids;
hash map.
(clone_function_name_numbered): Use clone_fn_ids.

gcc/testsuite:

* gcc.dg/independent-cloneids-1.c: New test.

From-SVN: r266691
gcc/ChangeLog
gcc/cgraphclones.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/independent-cloneids-1.c [new file with mode: 0644]