1. 17 Apr, 2016 9 commits
    • re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) · 69a4e898
      
      	PR ipa/70018
      	* cgraph.h (cgraph_node::set_const_flag,
      	cgraph_node::set_pure_flag): Update prototype to return bool;
      	update comment.
      	* cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
      	of interposable symbol are interposable, too.
      	(cgraph_set_const_flag_1): Rename to ...
      	(set_const_flag_1): ... this one; change to self recursive function
      	instead of call_for_symbol_thunks_and_aliases. Handle correctly
      	clearnig the flag in all variants and also virtual thunks of const
      	functions are pure; track if any change was done.
      	(cgraph_node::set_const_flag): Update.
      	(struct set_pure_flag_info): New struct.
      	(cgraph_set_pure_flag_1): Rename to ...
      	(set_pure_flag_1): ... this one; take set_pure_flag_info parameter
      	rather than pointer encoded flags; track if any changes was done;
      	handle correctly clearning flag and setting flag of aliases already
      	declared const.
      	(cgraph_node::set_pure_flag): Update.
      	(cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
      
      From-SVN: r235081
      Jan Hubicka committed
    • Handle backslash in pp_write_text_as_dot_label_to_stream · b3de2446
      2016-04-17  Tom de Vries  <tom@codesourcery.com>
      
      	PR other/70433
      	* pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
      	backslash in label.
      
      From-SVN: r235077
      Tom de Vries committed
    • Fix record-shape escapes in pp_write_text_as_dot_label_to_stream · 795391fb
      2016-04-17  Tom de Vries  <tom@codesourcery.com>
      
      	* pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
      	'{}<> ' as escape-for-record.
      
      From-SVN: r235076
      Tom de Vries committed
    • Simplify loop in pp_write_text_as_dot_label_to_stream · da3ebf2d
      2016-04-17  Tom de Vries  <tom@codesourcery.com>
      
      	* pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
      	structure.
      
      From-SVN: r235075
      Tom de Vries committed
    • Only finalize dot files that have been initialized · 182c7868
      2016-04-17  Tom de Vries  <tom@codesourcery.com>
      
      	PR other/70185
      	* tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
      	* dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
      	* dumpfile.c (dump_files): Initialize graph_dump_initialized field.
      	* passes.c (finish_optimization_passes): Only call
      	finish_graph_dump_file if dfi->graph_dump_initialized.
      	(execute_function_dump, pass_init_dump_file): Use
      	dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
      
      From-SVN: r235074
      Tom de Vries committed
    • Add debug_varinfo and debug_varmap · c5e2d17d
      2016-04-17  Tom de Vries  <tom@codesourcery.com>
      
      	PR tree-optimization/70256
      	* tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
      	(debug_varmap): New function.
      
      From-SVN: r235073
      Tom de Vries committed
    • Propagate dump flags in pass_manager::register_pass · da152c9f
      2016-04-17  Tom de Vries  <tom@codesourcery.com>
      
      	PR other/70183
      	* passes.c (pass_manager::register_pass): Propagate pflags.
      
      	* gcc.target/i386/vzeroupper-dump-flags.c: New test.
      
      From-SVN: r235072
      Tom de Vries committed
    • Add pass parameter to TERMINATE_PASS_LIST · 17e7ab87
      2016-04-17  Tom de Vries  <tom@codesourcery.com>
      
      	PR other/68875
      	* pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
      	* passes.c (pass_manager::pass_manager): Declare and init p_start in
      	INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
      	check if it's equal to p_start.
      	* passes.def: Add arguments to TERMINATE_PASS_LISTs.
      
      From-SVN: r235071
      Tom de Vries committed
    • Daily bump. · 767f8bb1
      From-SVN: r235070
      GCC Administrator committed
  2. 16 Apr, 2016 4 commits
    • re PR target/1078 (Problems with attributes documentation) · a4186552
      2016-04-16  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR target/1078
      
      	gcc/cp/
      	* tree.c (cxx_attribute_table): Remove "com_interface" entry.
      	(handle_com_interface_attribute): Delete.
      
      From-SVN: r235066
      Sandra Loosemore committed
    • re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) · cc950f98
      
      	PR ipa/70018
      	* cgraph.c (cgraph_set_const_flag_1): Only set as pure if
      	function does not bind to current def.
      	* ipa-pure-const.c (worse_state): Add FROM and TO parameters;
      	handle conservatively calls to functions that does not need to bind
      	to current def.
      	(check_call): Update call of worse_state.
      	(ignore_edge_for_nothrow): Update.
      	(ignore_edge_for_pure_const): Likewise.
      	(propagate_pure_const): Update calls to worse_state.
      	(skip_function_for_local_pure_const): Reformat comments.
      
      	* g++.dg/ipa/pure-const-1.C: New testcase.
      	* g++.dg/ipa/pure-const-2.C: New testcase.
      	* g++.dg/ipa/pure-const-3.C: New testcase.
      
      From-SVN: r235065
      Jan Hubicka committed
    • re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) · f13fe18b
      
      	PR ipa/70018
      	* cgraph.c (cgraph_node::get_availability): Add REF parameter.
      	(cgraph_node::function_symbol): Likewise.
      	(cgraph_node::function_or_virtual_thunk_symbol): Likewise.
      	* cgraph.h (symtab_node::get_availabbility): Add REF parameter.
      	(symtab_node::ultimate_alias_target): Add REF parameter.
      	(symtab_node::binds_to_current_def_p): Declare.
      	(symtab_node;:ultimate_alias_target_1): Add REF parameter.
      	(cgraph_node::function_symbol): Likewise.
      	(cgraph_node::function_or_virtual_thunk_symbol): Likewise.
      	(cgraph_node::get_availability): Likewise.
      	(cgraph_edge::binds_to_current_def_p): New inline function.
      	(varpool_node::get_availability): Add REF parameter.
      	(varpool_node::ultimate_alias_target): Likewise.
      	* symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
      	(symtab_node::binds_to_current_def_p): Likewise.
      	* varpool.c (varpool_node::get_availability): Likewise.
      
      From-SVN: r235063
      Jan Hubicka committed
    • Daily bump. · 06c3ddc0
      From-SVN: r235058
      GCC Administrator committed
  3. 15 Apr, 2016 21 commits
  4. 14 Apr, 2016 6 commits