On 01/05/2016 11:20 AM, Jakub Jelinek wrote:
Hi!
On the following testcase we ICE, because fn is __builtin_unreachable
that doesn't have to have a cgraph node created.
The name method on cgraph nodes calls decl_printable_name, so the following
patch does that even if the cgraph node is NULL.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2016-01-05 Jakub Jelinek <ja...@redhat.com>
PR tree-optimization/69141
* tree-ssa-pre.c: Include langhooks.h.
(eliminate_dom_walker::before_dom_children): Use
lang_hooks.decl_printable_name instead of
cgraph_node::get ()->name ().
* g++.dg/opt/pr69141.C: New test.
OK.
jeff