1. 06 Aug, 2012 12 commits
    • [multiple changes] · 3217f71e
      2012-08-06  Robert Dewar  <dewar@adacore.com>
      
      	* exp_util.adb, switch-c.adb, inline.ads, sem_ch10.adb, types.ads,
      	checks.adb, sem_prag.adb, sem.adb, sem.ads, sem_res.adb, sem_attr.adb,
      	gnat1drv.adb, exp_ch4.adb, exp_ch6.adb, opt.ads, osint.adb: Implement
      	extended overflow checks (step 1).
      	(Overflow_Check_Type, Suppress_Record, Suppress_All): New types.
      	(Suppress_Array): Extended to include switches to control extended
      	overflow checking (and renamed to Suppress_Record).
      	Update all uses of Suppress_Array.
      
      2012-08-06  Thomas Quinot  <quinot@adacore.com>
      
      	* makeutl.ads: Minor documentation fix.
      
      2012-08-06  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_ch7.adb: Minor reformatting.
      
      From-SVN: r190166
      Arnaud Charlet committed
    • [multiple changes] · e6807723
      2012-08-06  Geert Bosch  <bosch@adacore.com>
      
      	* a-ngelfu.adb: Change obsolete comment that this is a non-strict
      	implementation.
      
      2012-08-06  Steve Baird  <baird@adacore.com>
      
      	* exp_ch7.adb (Build_Finalizer.Process_Object_Declaration): If
      	CodePeer_Mode = True then omit exception handlers for finalization calls
      
      2012-08-06  Robert Dewar  <dewar@adacore.com>
      
      	* exp_aggr.adb: Minor reformatting.
      
      From-SVN: r190165
      Arnaud Charlet committed
    • [multiple changes] · 2aca76d6
      2012-08-06  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb: Remove useless flag Body_Deleted.
      
      2012-08-06  Thomas Quinot  <quinot@adacore.com>
      
      	* sinfo.ads (End_Span): Change default from No_Uint to Uint_0,
      	as this is what all usage occurrences of this attribute are
      	expecting.
      	* uintp.adb (UI_To_Int): Add assertion to guard against calling
      	with No_Uint.
      
      From-SVN: r190164
      Arnaud Charlet committed
    • re PR ada/54125 (s-atopri.adb:40:10: "Support_Atomic_Primitives" is undefined… · 0ebc109a
      re PR ada/54125 (s-atopri.adb:40:10: "Support_Atomic_Primitives" is undefined broke Ada on multiple platforms)
      
      2012-08-06  Vincent Pucci  <pucci@adacore.com>
      
      PR ada/54125
      	* exp_attr.adb (Expand_N_Attribute_Reference): Expand new
      	Atomic_Always_Lock_Free attribute.
      	* sem_attr.adb (Analyze_Attribute): Analyze new
      	Atomic_Always_Lock_Free attribute.
      	(Eval_Attribute): Nothing to do with new Atomic_Always_Lock_Free
      	attribute.
      	* sem_ch9.adb (Allows_Lock_Free_Implementation):
      	Support_Atomic_Primitives check replaces previous erroneous
      	size check.
      	* sem_util.adb, sem_util.ads (Support_Atomic_Primitives):
      	New routine.
      	* snames.ads-tmpl: New name Name_Atomic_Always_Lock_Free and
      	new attribute Attribute_Atomic_Always_Lock_Free defined.
      	* s-atopri.adb: Support_Atomic_Primitives checks replaced by
      	Atomic_Always_Lock_Free queries.
      	* system-aix64.ads, system-aix.ads, system-darwin-ppc.ads,
      	system-hpux.ads, system-linux-alpha.ads, system-linux-hppa.ads,
      	system-linux-ppc.ads, system-linux-s390.ads,
      	system-linux-s390x.ads, system-linux-sh4.ads,
      	system-linux-sparc.ads, system-lynxos178-ppc.ads,
      	system-lynxos-ppc.ads, system-mingw.ads,
      	system-vxworks-arm.ads, system-solaris-sparc.ads,
      	system-solaris-sparcv9.ads, system-vms_64.ads,
      	system-vxworks-m68k.ads, system-vxworks-mips.ads,
      	system-vxworks-ppc.ads, system-vxworks-sparcv9.ads: Flag
      	Support_Atomic_Primitives removed.
      
      From-SVN: r190163
      Vincent Pucci committed
    • [multiple changes] · a39a553e
      2012-08-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_mech.adb (Set_Mechanisms): OUT and IN OUT parameters are
      	now unconditionally passed by reference. IN parameters subject
      	to convention C_Pass_By_Copy are passed by copy, otherwise they
      	are passed by reference.
      
      2012-08-06  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Analyze_Object_Declaration): According to
      	AI95-0303, protected objects with interrupt handlers can be
      	declared in nested scopes. This is a binding interpretation,
      	and thus applies to all versions of the compiler.
      
      2012-08-06  Robert Dewar  <dewar@adacore.com>
      
      	* frontend.adb, exp_aggr.adb: Minor reformatting.
      
      2012-08-06  Thomas Quinot  <quinot@adacore.com>
      
      	* par-endh.adb: Minor reformatting.
      
      From-SVN: r190162
      Arnaud Charlet committed
    • [multiple changes] · 5eeeed5e
      2012-08-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch7.adb (Process_Transient_Objects): Remove obsolete loop
      	processing related to array initialization. The expansion of
      	loops already contains a mechanism to detect controlled objects
      	generated by expansion and introduce a block around the loop
      	statements for finalization purposes.
      
      2012-08-06  Vincent Pucci  <pucci@adacore.com>
      
      	* sem_ch13.adb: Current scope must be within
      	or same as the scope of the entity while analysing aspect
      	specifications at freeze point.
      
      2012-08-06  Thomas Quinot  <quinot@adacore.com>
      
      	* par_sco.adb: Add note about dubious SCO for TERMINATE
      	alternative.
      	* sem_ch8.adb, exp_ch11.adb: Minor reformatting.
      
      2012-08-06  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_aggr.adb (Two_Dim_Packed_Array_Handled): New procedure to
      	transform an aggregate for a packed two-dimensional array into
      	a one-dimensional array of constant values, in order to avoid
      	the generation of component-by-component assignments.
      
      2012-08-06  Thomas Quinot  <quinot@adacore.com>
      
      	* frontend.adb: Do not attempt to process deferred configuration
      	pragmas if the main unit failed to load, to avoid cascaded
      	inconsistencies that can lead to a compiler crash.
      
      From-SVN: r190161
      Arnaud Charlet committed
    • [multiple changes] · b5ee491c
      2012-08-06  Vincent Pucci  <pucci@adacore.com>
      
      	* s-atopri.adb: Minor reformatting.
      
      2012-08-06  Arnaud Charlet  <charlet@adacore.com>
      
      	* gnat-style.texi: Clarify that all subprograms should be
      	documented. Minor rewording.
      
      From-SVN: r190160
      Arnaud Charlet committed
    • [multiple changes] · f2c992d9
      2012-08-06  Robert Dewar  <dewar@adacore.com>
      
      	* aspects.ads: Define Aspect_Id_Exclude_No_Aspect.
      	* par-ch13.adb, restrict.adb: Use Aspect_Id_Exclude_No_Aspect to
      	simplify code.
      
      2012-08-06  Yannick Moy  <moy@adacore.com>
      
      	* gnat-style.texi: Update style guide for declarations.
      
      2012-08-06  Yannick Moy  <moy@adacore.com>
      
      	* sem_attr.adb (Analyze_Attribute): In the case for 'Old,
      	skip a special expansion which is not needed in Alfa mode.
      
      2012-08-06  Yannick Moy  <moy@adacore.com>
      
      	* sem_ch5.adb (Analyze_Iterator_Specification): Do not perform
      	an expansion of the iterator in Alfa mode.
      
      From-SVN: r190159
      Arnaud Charlet committed
    • [multiple changes] · a01da44a
      2012-08-06  Robert Dewar  <dewar@adacore.com>
      
      	* s-oscons-tmplt.c, sem_ch9.adb, osint.adb: Minor reformatting.
      
      2012-08-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Remove obsolete
      	Alfa-specific guard. The code is a leftover from an early
      	implementation of iterators which is no longer in use.
      
      2012-08-06  Vincent Celier  <celier@adacore.com>
      
      	* par-ch13.adb (Get_Aspect_Specifications): Do not consider
      	No_Aspect when checking for a mispelled aspect.
      
      From-SVN: r190158
      Arnaud Charlet committed
    • [multiple changes] · 1bd84c71
      2012-08-06  Robert Dewar  <dewar@adacore.com>
      
      	* s-htable.adb: Minor reformatting.
      
      2012-08-06  Thomas Quinot  <quinot@adacore.com>
      
      	* s-oscons-tmplt.c, g-socket.adb (System.OS_Constants.Target_OS):
      	Suppress warnings so that we don't have to do it at each usage.
      
      From-SVN: r190157
      Arnaud Charlet committed
    • [multiple changes] · b3f96dc1
      2012-08-06  Vincent Pucci  <pucci@adacore.com>
      
      	* exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body):
      	Use of Known_Static_Esize instead of  Known_Esize and
      	Known_Static_RM_Size instead of Known_RM_Size in order to
      	properly call UI_To_Int. Don't check the size of the component
      	type in case of generic.
      	* sem_ch9.adb (Allows_Lock_Free_Implementation):
      	Use of Known_Static_Esize instead of Known_Esize and
      	Known_Static_RM_Size instead of Known_RM_Size in order to properly
      	call UI_To_Int. Don't check the size of the component type in
      	case of generic.
      
      2012-08-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* checks.adb (Discrete_Range_Cond): Do not try to optimize on
      	the assumption that the type of an expression can always fit in
      	the target type of a conversion.
      
      From-SVN: r190156
      Arnaud Charlet committed
    • Daily bump. · d188799d
      From-SVN: r190154
      GCC Administrator committed
  2. 05 Aug, 2012 3 commits
  3. 04 Aug, 2012 8 commits
  4. 03 Aug, 2012 15 commits
  5. 02 Aug, 2012 2 commits
    • cfgexpand.c (expand_debug_locations): Encapsulate test for CONST_DOUBLE in macro. · 48175537
      2012-08-02  Kenneth Zadeck <zadeck@naturalbridge.com>
      
      	* cfgexpand.c (expand_debug_locations):  Encapsulate test for
      	CONST_DOUBLE in macro.
      	* combine.c (try_combine, gen_lowpart_for_combine): Ditto.
      	* cprop.c (implicit_set_cond_p): Ditto.
      	* cselib.c (rtx_equal_for_cselib_1): Ditto.
      	* expmed.c (expand_mult): Ditto.
      	* expr.c (convert_modes): Ditto.
      	* ira-costs.c (record_reg_classes): Ditto.
      	* ira-lives.c (single_reg_class): Ditto.
      	* optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
      	* print-rtl.c (print_rtx): Ditto.
      	* recog.c (simplify_while_replacing, const_double_operand)
      	(asm_operand_ok, constrain_operands): Ditto.
      	* reg-stack.c (subst_stack_regs_pat): Ditto.
      	* reload.c (find_reloads, find_equiv_reg): Ditto.
      	* rtlanal.c (replace_rtx): Remove test.
      	* rtlanal.c (constant_pool_constant_p, split_double): Encapsulate test for
      	CONST_DOUBLE in macro.
      	* simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
      	(simplify_unary_operation_1, simplify_const_unary_operation)
      	(simplify_binary_operation_1, simplify_const_binary_operation)
      	(simplify_relational_operation_1)
      	(simplify_const_relational_operations)
      	(implify_subreg): Ditto.
      	* varasm.c (output_constant_pool_2): Ditto.
      	* rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New
      	macros.
      	* rtl.def (CONST_DOUBLE):  Updated comments.
      
      From-SVN: r190105
      Kenneth Zadeck committed
    • re PR target/51931 (No support for MIPS16 long branches) · 36be1dee
      gcc/
      	PR target/51931
      	* config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
      	* config/mips/mips.c (mips_strip_unspec_address): Make extern.
      	(mips16_rewrite_pool_constant): Make a copy of the pool constant
      	before adding to a PC-relative table.
      	(mips16_lay_out_constants): Add a SPLIT_P parameter.
      	(mips16_load_branch_target, mips16_split_long_branches): New functions.
      	(mips_reorg): Update call to mips16_lay_out_constants.
      	Call mips16_split_long_branches.
      	* config/mips/predicates.md (pc_or_label_operand): Delete.
      	* config/mips/mips.md (length): Add a calculation for MIPS16 branches.
      	Move the extended_mips16 handling further down.
      	(*branch_equality<mode>_mips16): Replace use pc_or_label_operand
      	with explicit label_ref and pc.  Follow the usual operand numbering.
      	(*branch_equality<mode>_mips16_inverted): New pattern.
      	(*jump_mips16): Add length attribute.
      	(indirect_jump_and_restore_<mode>): New pattern.
      	(consttable_int): Call mips_strip_unspec_address on the operand.
      
      gcc/testsuite/
      	PR target/51931
      	* gcc.c-torture/compile/20001226-1.c: Remove nomips16 attribute.
      	* g++.dg/opt/longbranch1.C: Likewise.
      
      From-SVN: r190104
      Richard Sandiford committed