From patchwork Mon May 2 12:52:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Trivial patch to fix build with --enable-build-with-cxx Date: Mon, 02 May 2011 02:52:52 -0000 From: Dmitry Gorbachev X-Patchwork-Id: 93640 Message-Id: To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou ../../gcc-4.7/gcc/tree-inline.c: In function 'tree_node* maybe_inline_call_in_expr(tree)': ../../gcc-4.7/gcc/tree-inline.c:5229:40: error: converting 'false' to pointer type 'void (*)(tree)' [-Werror=conversion-null] 2011-05-02 Dmitry Gorbachev * tree-inline.c (maybe_inline_call_in_expr): Replace false by NULL. --- gcc/tree-inline.c +++ gcc/tree-inline.c @@ -5226,7 +5226,7 @@ id.transform_call_graph_edges = CB_CGE_DUPLICATE; id.transform_new_cfg = false; id.transform_return_to_modify = true; - id.transform_lang_insert_block = false; + id.transform_lang_insert_block = NULL; /* Make sure not to unshare trees behind the front-end's back since front-end specific mechanisms may rely on sharing. */