Commit 03108bad by Martin Jambor Committed by Martin Jambor

[PR 79579] Avoid segfault on NULL ipa_edge_args_vector

2017-02-21  Martin Jambor  <mjambor@suse.cz>

	PR lto/79579
	* ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
	have been analyzed.

From-SVN: r245628
parent 78117646
2017-02-21 Martin Jambor <mjambor@suse.cz> 2017-02-21 Martin Jambor <mjambor@suse.cz>
PR lto/79579
* ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
have been analyzed.
2017-02-21 Martin Jambor <mjambor@suse.cz>
* common.opt (-fipa-cp-alignment): Mark as ignored and preserved * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
for backward compatibility only. for backward compatibility only.
* doc/invoke.texi (Option Summary): Remove all references to * doc/invoke.texi (Option Summary): Remove all references to
......
...@@ -5040,7 +5040,7 @@ ipa_prop_write_jump_functions (void) ...@@ -5040,7 +5040,7 @@ ipa_prop_write_jump_functions (void)
lto_symtab_encoder_iterator lsei; lto_symtab_encoder_iterator lsei;
lto_symtab_encoder_t encoder; lto_symtab_encoder_t encoder;
if (!ipa_node_params_sum) if (!ipa_node_params_sum || !ipa_edge_args_vector)
return; return;
ob = create_output_block (LTO_section_jump_functions); ob = create_output_block (LTO_section_jump_functions);
......
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