[PATCH] Do not check call type compatibility when cloning cgraph-edges
authorMartin Jambor <mjambor@suse.cz>
Wed, 2 Oct 2019 12:44:35 +0000 (14:44 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 2 Oct 2019 12:44:35 +0000 (14:44 +0200)
commit3187c8a5010f4245ff008a0fc2fb746a8bce4a00
tree57403e651339babab9bbb759ade26ac1ce118719
parent569651fd6fdb6455da58f7811e6296c22ce34df7
[PATCH] Do not check call type compatibility when cloning cgraph-edges

2019-10-02  Martin Jambor  <mjambor@suse.cz>

* cgraph.c (symbol_table::create_edge): New parameter cloning_p,
do not compute some stuff when set.
(cgraph_node::create_edge): Likewise.
(cgraph_node::create_indirect_edge): Renamed last parameter to
coning_p and flipped its meaning, don't even calculate
inline_failed when set.
* cgraph.h (cgraph_node::create_edge): Add new parameter.
(symbol_table::::create_edge): Likewise.
(cgraph_node::create_indirect_edge): Rename last parameter, flip
the default value.
* cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
call graph edge creating functions.

From-SVN: r276455
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphclones.c