Re: [PATCH] Properly register dead cgraph_nodes in passes.c.

2019-08-14 Thread Jeff Law
On 8/9/19 6:41 AM, Martin Liška wrote: > Hi. > > The patch prevents crashes caused by fact that do_per_function_toporder > uses get_uid () to register all dead cgraph_nodes. That does not work > now as cgraph_nodes are directly released via ggc_free and so that one > will see a garbage here. Secon

Re: [PATCH] Properly register dead cgraph_nodes in passes.c.

2019-08-12 Thread Martin Liška
  (insert_cgraph_node_to_order): New. >> (duplicate_cgraph_node_to_order): New. >> (do_per_function_toporder): Register all 3 cgraph hooks. >> Skip removed_nodes now as we know about all of them. >> --- >>   gcc/passes.c | 69 +++++--

Re: [PATCH] Properly register dead cgraph_nodes in passes.c.

2019-08-09 Thread Martin Sebor
On 8/9/19 6:41 AM, Martin Liška wrote: Hi. The patch prevents crashes caused by fact that do_per_function_toporder uses get_uid () to register all dead cgraph_nodes. That does not work now as cgraph_nodes are directly released via ggc_free and so that one will see a garbage here. Second steps is

[PATCH] Properly register dead cgraph_nodes in passes.c.

2019-08-09 Thread Martin Liška
Hi. The patch prevents crashes caused by fact that do_per_function_toporder uses get_uid () to register all dead cgraph_nodes. That does not work now as cgraph_nodes are directly released via ggc_free and so that one will see a garbage here. Second steps is to register all cgraph hooks and correct