Commit c99c885e by Bernd Schmidt Committed by Bernd Schmidt

Change an assignment to an assert.

	* asan.c (asan_finish_file): Use varpool_finalize_decl instead of
	varpool_assemble_decl.
	* varpool.c (varpool_assemble_decl): Assert that node->definition is
	true.

From-SVN: r212564
parent 441f96ff
2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
* asan.c (asan_finish_file): Use varpool_finalize_decl instead of
varpool_assemble_decl.
* varpool.c (varpool_assemble_decl): Assert that node->definition is
true.
2014-07-15 Michael Matz <matz@suse.de>
PR rtl-optimization/61772
......
......@@ -2595,7 +2595,7 @@ asan_finish_file (void)
TREE_CONSTANT (ctor) = 1;
TREE_STATIC (ctor) = 1;
DECL_INITIAL (var) = ctor;
varpool_assemble_decl (varpool_node_for_decl (var));
varpool_finalize_decl (var);
fn = builtin_decl_implicit (BUILT_IN_ASAN_REGISTER_GLOBALS);
tree gcount_tree = build_int_cst (pointer_sized_int_node, gcount);
......
......@@ -541,7 +541,7 @@ varpool_assemble_decl (varpool_node *node)
varpool_get_constructor (node);
assemble_variable (decl, 0, 1, 0);
gcc_assert (TREE_ASM_WRITTEN (decl));
node->definition = true;
gcc_assert (node->definition);
assemble_aliases (node);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment