1. 29 Apr, 2012 7 commits
  2. 28 Apr, 2012 6 commits
  3. 27 Apr, 2012 17 commits
  4. 26 Apr, 2012 10 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
    • bf-ms-layout.c: Adjust offsets to fit ms-bitfield structure layout. · 2b3ecd37
      	* gcc.dg/bf-ms-layout.c: Adjust offsets to fit ms-bitfield
      	structure layout.
      
      From-SVN: r186880
      Janis Johnson committed
    • re PR middle-end/52940 (conversion from MODE_PARTIAL_INT uses sign extension for unsigned types) · e90247f8
      	PR middle-end/52940
      	* machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
      	* expr.c (convert_move): Honor unsignedp when extending partial int
      	modes.
      	* genmodes.c (complete_mode): Don't clear component field of partial
      	int modes.
      	(emit_mode_inner): Don't emit it however.
      	(calc_wider_mode): Partial int modes widen to their component.
      
      From-SVN: r186877
      Bernd Schmidt committed
    • re PR middle-end/52997 (FAIL: gcc.dg/c99-intconst-1.c (internal compiler error)) · 81c082ec
      	* PR middle-end/52997
      	* ira.c (find_moveable_pseudos): Call resize_reg_info.
      
      From-SVN: r186875
      Bernd Schmidt committed
    • [multiple changes] · 7989e392
      2012-04-26  Tristan Gingold  <gingold@adacore.com>
      
      	* gcc-interface/Make-lang.in: Update dependencies.
      	Remove s-traceb and tracebak objects from gnat1 and gnatbind (not used).
      	Remove s-tasdeb and s-vaflop rules (not used).
      
      2012-04-26  Olivier Hainque  <hainque@adacore.com>
      
      	* gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Default to
      	DOUBLE_TYPE_SIZE instead of LONG_DOUBLE_TYPE_SIZE.
      
      2012-04-26  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* a-calend.adb (Day_Of_Week): Keep the internal
      	usage of UTC_Time_Offset consistent with Time_Of and Split.
      
      From-SVN: r186872
      Arnaud Charlet committed
    • [multiple changes] · d99ff0f4
      2012-04-26  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Do not freeze
      	the loop variable while preanalyzing a quantified expression.
      
      2012-04-26  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* a-calend.adb (Split, Time_Of): Rename parameter Is_Ada_05
      	to Use_TZ to better illustrate its function. Update all
      	references to the parameter.
      	(To_Ada_Time): Update the call to Formatting_Operations.Time_Of.
      	* a-calend.ads (Split, Time_Of): Rename parameter Is_Ada_05
      	to Use_TZ to better illustrate its function. Update the related
      	comment on usage.
      	* a-calend-vms.adb (Split, Time_Of): Rename parameter
      	Is_Ada_05 to Use_TZ to better illustrate its function. Update
      	all references to the parameter.
      	(To_Ada_Time): Update the call to Formatting_Operations.Time_Of.
      	* a-calend-vms.ads (Split, Time_Of): Rename parameter Is_Ada_05
      	to Use_TZ to better illustrate its function. Update the related
      	comment on usage.
      	* a-calfor.adb (Split, Time_Of): Update the call to
      	Formatting_Operations.Time_Of.
      	* sysdep.c (__gnat_localtime_tzoff): Dereference pointer
      	"is_historic" and rewrite the check as a comparison. Add a
      	comment on flag values.
      
      2012-04-26  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch2.adb, sem_ch8.adb: Minor reformatting.
      
      2012-04-26  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* a-stzunb-shared.adb, gnat_ugn.texi, a-strunb-shared.adb,
      	a-strunb-shared.ads, uintp.adb, a-stwiun-shared.adb,
      	a-stwiun-shared.ads, a-cbhama.ads, vms_data.ads, a-cobove.adb,
      	a-convec.adb, sem_ch13.adb, a-cbhase.ads: Fix common misuses of the
      	word "then" where "than" should be used in English.
      
      From-SVN: r186871
      Arnaud Charlet committed
    • [multiple changes] · f146302c
      2012-04-26  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch5.adb (Check_Unreachable_Code): Skip past pragmas.
      
      2012-04-26  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* s-finroo.ads: Remove with clause for
      	Ada.Streams. Type Root_Controlled is now abstract tagged null
      	record. Remove internal package Stream_Attributes. Root_Controlled
      	doesn't need stream attribute redeclaration and avoids the
      	dependency on streams.
      
      2012-04-26  Tristan Gingold  <gingold@adacore.com>
      
      	* adaint.c (to_host_path_spec): Removed (unused).
      	Minor reformatting.
      
      2012-04-26  Steve Baird  <baird@adacore.com>
      
      	* gnat_rm.texi Improve description of Valid_Scalars attribute.
      
      2012-04-26  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Can_Override_Operator): If the formal is a
      	generic type the operator cannot be overriding.
      
      2012-04-26  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch8.adb (Spec_Reloaded_For_Body): Check whether the type
      	is declared in a package specification, and current unit is the
      	corresponding package body. The use clauses themselves may be
      	within a nested package.
      
      2012-04-26  Bob Duff  <duff@adacore.com>
      
      	* exp_ch2.adb (Param_Entity): Take into account the case where
      	the type of the entry parameter has a representation clause.
      
      From-SVN: r186870
      Arnaud Charlet committed