1. 30 Apr, 2012 3 commits
    • gigi.h (mark_out_of_scope): Delete. · f04b8d69
      	* gcc-interface/gigi.h (mark_out_of_scope): Delete.
      	(destroy_gnat_to_gnu): Declare.
      	(destroy_dummy_type): Likewise.
      	* gcc-interface/decl.c (mark_out_of_scope): Delete.
      	* gcc-interface/utils.c (destroy_gnat_to_gnu): New function.
      	(destroy_dummy_type): Likewise.
      	* gcc-interface/trans.c (gnat_validate_uc_list): New variable.
      	(gigi): Call validate_unchecked_conversion on gnat_validate_uc_list
      	after the translation is completed.  Call destroy_gnat_to_gnu and
      	destroy_dummy_type at the end.
      	(Subprogram_Body_to_gnu): Do not call mark_out_of_scope.
      	(gnat_to_gnu) <N_Block_Statement>: Likewise.
      	<N_Validate_Unchecked_Conversion>: Do not process the node, only push
      	it onto gnat_validate_uc_list.
      	(validate_unchecked_conversion): New function.
      
      From-SVN: r186956
      Eric Botcazou committed
    • invoke.texi (Wmissing-format-attribute): Document as an alias of Wsuggest-attribute=format. · 90137d8f
      2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      gcc/
      	* doc/invoke.texi (Wmissing-format-attribute): Document as an
      	alias of Wsuggest-attribute=format.
      c-family/
      	* c.opt (Wsuggest-attribute=format): New. Alias of
      	Wmissing-format-attribute.
      	* c-format.c (decode_format_type): Replace
      	Wmissing-format-attribute with Wsuggest-attribute=format.
      	(check_function_format): Likewise.
      cp/
      	* typeck.c (convert_for_assignment):  Replace
      	Wmissing-format-attribute with Wsuggest-attribute=format.
      	* call.c (convert_for_arg_passing): Likewise.
      gcc/
      	* c-typeck.c (convert_for_assignment): Replace
      	Wmissing-format-attribute with Wsuggest-attribute=format.
      	(digest_init): Likewise.
      
      From-SVN: r186955
      Manuel López-Ibáñez committed
    • Daily bump. · 70c33a85
      From-SVN: r186952
      GCC Administrator committed
  2. 29 Apr, 2012 10 commits
  3. 28 Apr, 2012 6 commits
  4. 27 Apr, 2012 17 commits
  5. 26 Apr, 2012 4 commits
    • re PR c++/53096 ([DR 1333] [c++11] should be possible to default a copy ctor… · df16e146
      re PR c++/53096 ([DR 1333] [c++11] should be possible to default a copy ctor that takes non-const arg)
      
      /cp
      2012-04-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53096
      	* class.c (check_bases_and_members): Implement core/1333, do not
      	disallow defaulted in the class body non-const ref special members.
      
      /testsuite
      2012-04-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53096
      	* g++.dg/cpp0x/defaulted35.C: New.
      	* g++.dg/cpp0x/defaulted15.C: Adjust.
      
      From-SVN: r186888
      Paolo Carlini committed
    • sched-deps.c (fixup_sched_groups): Rename to... · fd59643c
      gcc/
      	* sched-deps.c (fixup_sched_groups): Rename to...
      	(chain_to_prev_insn): ...this.
      	(chain_to_prev_insn_p): New function.
      	(deps_analyze_insn): Use it instead of SCHED_GROUP_P.
      
      From-SVN: r186883
      Richard Sandiford committed
    • sched-int.h (_haifa_insn_data): Move priority_status. · 7a1aca9c
      gcc/
      	* sched-int.h (_haifa_insn_data): Move priority_status.
      	Add model_index.
      	(INSN_MODEL_INDEX): New macro.
      	* haifa-sched.c (insn_delay): New function.
      	(sched_regno_pressure_class): Update commentary.
      	(mark_regno_birth_or_death): Pass the liveness bitmap and
      	pressure array as arguments, instead of using curr_reg_live and
      	curr_reg_pressure.  Only update the pressure if the bit in the
      	liveness set has changed.
      	(initiate_reg_pressure_info): Always trust the live-in set for
      	SCHED_PRESSURE_MODEL.
      	(initiate_bb_reg_pressure_info): Update call to
      	mark_regno_birth_or_death.
      	(dep_list_size): Take the list as argument.
      	(calculate_reg_deaths): New function, extracted from...
      	(setup_insn_reg_pressure_info): ...here.
      	(MODEL_BAR): New macro.
      	(model_pressure_data, model_insn_info, model_pressure_limit)
      	(model_pressure_group): New structures.
      	(model_schedule, model_worklist, model_insns, model_num_insns)
      	(model_curr_point, model_before_pressure, model_next_priority):
      	New variables.
      	(MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
      	(MODEL_INSN_INFO, MODEL_INSN): New macros.
      	(model_index, model_update_limit_points_in_group): New functions.
      	(model_update_limit_points, model_last_use_except): Likewise.
      	(model_start_update_pressure, model_update_pressure): Likewise.
      	(model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
      	(model_excess_cost, model_dump_pressure_points): Likewise.
      	(model_set_excess_costs): Likewise.
      	(rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
      	SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
      	schedule as an alternative tie-breaker.  Update the call to
      	dep_list_size.
      	(ready_sort): Call model_set_excess_costs.
      	(update_register_pressure): Update call to mark_regno_birth_or_death.
      	Rely on that function to check liveness rather than doing it here.
      	(model_classify_pressure, model_order_p, model_add_to_worklist_at)
      	(model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
      	(model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
      	(model_record_pressure, model_record_pressures): New functions.
      	(model_record_final_pressures, model_add_successors_to_worklist)
      	(model_promote_predecessors, model_choose_insn): Likewise.
      	(model_reset_queue_indices, model_dump_pressure_summary): Likewise.
      	(model_start_schedule, model_finalize_pressure_group): Likewise.
      	(model_end_schedule): Likewise.
      	(schedule_insn): Say when we're scheduling the next instruction
      	in the model schedule.
      	(schedule_insn): Handle SCHED_PRESSURE_MODEL.
      	(queue_to_ready): Do not add instructions that are
      	MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
      	Always allow the next instruction in the model schedule to be added.
      	(debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
      	and delay for SCHED_PRESSURE_MODEL too.
      	(prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
      	SCHED_PRIORITY_MODEL, but also take the DFA into account.
      	(schedule_block): Call model_start_schedule and model_end_schedule.
      	Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
      	(sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
      	to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
      	region_ref_regs.
      	(sched_finish): Update accordingly.
      	(fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
      	to SCHED_PRESSURE_MODEL.
      	(add_jump_dependencies): Update call to dep_list_size.
      	(haifa_finish_h_i_d): Fix leak of max_reg_pressure.
      	(haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
      	to SCHED_PRESSURE_MODEL.
      	* sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
      	allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
      	(sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
      	handling to SCHED_PRESSURE_MODEL.
      
      From-SVN: r186882
      Richard Sandiford committed
    • common.opt (fsched-pressure-algorithm=): New option. · 60867e8c
      gcc/
      	* common.opt (fsched-pressure-algorithm=): New option.
      	* flag-types.h (sched_pressure_algorithm): New enum.
      	* sched-int.h (sched_pressure_p): Replace with...
      	(sched_pressure): ...this new variable.
      	* haifa-sched.c (sched_pressure_p): Replace with...
      	(sched_pressure): ...this new variable.
      	(sched_regno_pressure_class, rank_for_schedule, ready_sort)
      	(update_reg_and_insn_max_reg_pressure, schedule_insn)
      	(debug_ready_list, prune_ready_list, schedule_block, sched_init)
      	(sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
      	* sched-deps.c (init_insn_reg_pressure_info): Likewise.
      	(sched_analyze_insn): Likewise.
      	* sched-rgn.c (schedule_region): Likewise.
      	* config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
      
      From-SVN: r186881
      Richard Sandiford committed