Currently the bootstrap with --enable-build-with-cxx is broken due to compiler
errors of the form
"error: converting 'false' to pointer type 'varpool_node*'
[-Werror=conversion-null]". The attached
patch changes these instances of false to NULL and restores the
--enable-build-with-cxx bootstrap.
Tested on x86_64-apple-darwin10. Okay for gcc trunk?
Jack
2011-05-05 Jack Howarth <[email protected]>
* gcc/tree-inline.c (maybe_inline_call_in_expr): Use NULL.
* gcc/varpool.c (varpool_extra_name_alias): Likewise.
Index: gcc/tree-inline.c
===================================================================
--- gcc/tree-inline.c (revision 173423)
+++ gcc/tree-inline.c (working copy)
@@ -5238,7 +5238,7 @@ maybe_inline_call_in_expr (tree exp)
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. */
Index: gcc/varpool.c
===================================================================
--- gcc/varpool.c (revision 173423)
+++ gcc/varpool.c (working copy)
@@ -676,7 +676,7 @@ varpool_extra_name_alias (tree alias, tr
#ifndef ASM_OUTPUT_DEF
/* If aliases aren't supported by the assembler, fail. */
- return false;
+ return NULL;
#endif
gcc_assert (TREE_CODE (decl) == VAR_DECL);