1. 16 Oct, 2015 20 commits
    • checks.adb: Fix typo. · 57d3adcd
      2015-10-16  Arnaud Charlet  <charlet@adacore.com>
      
      	* checks.adb: Fix typo.
      	* s-osinte-linux.ads: Add header.
      	* projects.texi: Removed, no longer used.
      	* s-multip.adb: Minor: fix header.
      	* sem_ch3.adb, exp_ch7.adb, g-dirope.ads, sinfo.ads, types.ads,
      	a-textio.adb, s-exctra.adb, ali.adb, back_end.ads, exp_intr.adb,
      	a-tigeli.adb, exp_ch3.adb, s-os_lib.ads: Remove further references to
      	.NET.
      	* gnatlink.adb, opt.ads, exp_aggr.adb, s-solita.adb: Minor comment
      	updates.
      
      From-SVN: r228880
      Arnaud Charlet committed
    • exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on the temporary object… · e83ed692
      exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on the temporary object used for a by-copy entry parameter...
      
      2015-10-16  Gary Dismukes  <dismukes@adacore.com>
      
      	* exp_ch9.adb (Build_Simple_Entry_Call): Set_Is_Internal on
      	the temporary object used for a by-copy entry parameter, to
      	ensure that the object doesn't get its No_Initialization flag
      	reset later in Default_Initialize_Object. Also, generate the
      	assignment of the actual to the temporary in the additional case
      	of a scalar out parameter whose type has a Default_Value aspect.
      	* exp_ch3.adb: Fix minor typo in comment.
      
      From-SVN: r228879
      Gary Dismukes committed
    • [multiple changes] · f145ece7
      2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_util.adb, sem_util.ads, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb:
      	Minor reformatting.
      	* sem_ch12.adb (Analyze_Formal_Package_Declaration): Set the
      	SPARK_Mode from the context.
      
      2015-10-16  Bob Duff  <duff@adacore.com>
      
      	* sem_util.adb (Requires_Transient_Scope):
      	If Typ is a generic formal incomplete type, look at the actual
      	type. Otherwise, we don't notice that the actual type is tagged,
      	has a variant part, etc, causing a mismatch of calling conventions
      	between caller and callee.
      
      2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* einfo.ads: Move the declaration of enumeration
      	literal E_Abstract_State above E_Entry.  Update the upper bound
      	of subtype Overloadable_Kind.
      
      2015-10-16  Gary Dismukes  <dismukes@adacore.com>
      
      	* exp_attr.adb: Minor editorial changes.
      
      From-SVN: r228878
      Arnaud Charlet committed
    • Shrink std::random_shuffle test to pass on simulators · 6b6254db
      2015-10-16  Aurelio Remonda  <aurelio.remonda@tallertechnologies.com>
      
      	* testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable
      	N from const int N = 200000 to const unsigned int N = 10000.
      	Delete useless fill_ascending function call.
      
      From-SVN: r228876
      Aurelio Remonda committed
    • revert: ipa-icf-gimple.c (func_checker::compare_operand): Compare only empty constructors. · 6d244704
      
      	Revert:
      	* ipa-icf-gimple.c (func_checker::compare_operand): Compare only
      	empty constructors.
      	* gcc.c-torture/compile/icfmatch.c: Add testcase
      
      From-SVN: r228875
      Jan Hubicka committed
    • exp_ch5.adb, [...]: Code clean up: remove special handling for .NET and JVM. · 535a8637
      2015-10-16  Arnaud Charlet  <charlet@adacore.com>
      
      	* exp_ch5.adb, sem_ch3.adb, frontend.adb, exp_ch7.adb, exp_ch7.ads,
      	sem_ch5.adb, sem_type.adb, exp_util.adb, exp_util.ads, comperr.adb,
      	exp_attr.adb, sinfo.ads, exp_ch9.adb, make.adb, usage.adb,
      	lib-writ.adb, sem_ch9.adb, bindgen.adb, debug.adb, einfo.adb,
      	einfo.ads, types.ads, checks.adb, sem_prag.adb, s-tasini.adb,
      	rtsfind.ads, freeze.adb, sem_util.adb, sem_util.ads, exp_dbug.adb,
      	gnatlink.adb, gnat1drv.adb, targparm.adb, targparm.ads, exp_ch4.adb,
      	exp_ch11.adb, repinfo.adb, s-soflin.adb, s-soflin.ads, exp_ch6.adb,
      	exp_ch13.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb, exp_disp.adb,
      	sem_ch8.adb, exp_disp.ads, snames.adb-tmpl, exp_aggr.adb, sem_eval.adb,
      	exp_intr.adb, sem_ch13.adb, snames.ads-tmpl, sem_disp.adb, exp_ch3.adb:
      	Code clean up: remove special handling for .NET and JVM.
      
      From-SVN: r228874
      Arnaud Charlet committed
    • sem_ch12.adb: Minor punctuation fix in comment · 07fbef62
      2015-10-16  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_ch12.adb: Minor punctuation fix in comment
      	* s-rident.ads: Minor consistency fix in comment
      	* exp_attr.adb, g-spipat.ads: punctuation fixes in comments.
      	* restrict.ads: Style fix in comments.
      	* sem_prag.adb: Minor grammar fix in comment
      
      From-SVN: r228873
      Arnaud Charlet committed
    • [multiple changes] · e1d458b0
      2015-10-16  Gary Dismukes  <dismukes@adacore.com>
      
      	* sem_ch12.adb: Minor reformatting/rewording.
      
      2015-10-16  Arnaud Charlet  <charlet@adacore.com>
      
      	* einfo.ads: Minor fix of duplicate words
      	* rident.ads: Minor style fix in comment
      
      From-SVN: r228872
      Arnaud Charlet committed
    • exp_ch3.adb (Expand_N_Full_Type_Declaration): Do not capture, set and restore the Ghost mode. · 1af4455a
      2015-10-16  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch3.adb (Expand_N_Full_Type_Declaration): Do not capture,
      	set and restore the Ghost mode.
      	(Expand_N_Object_Declaration): Do not capture, set and restore the
      	Ghost mode.
      	(Freeze_Type): Redo the capture and restore of the Ghost mode.
      	(Restore_Globals): Removed.
      	* exp_ch5.adb (Expand_N_Assignment_Statement): Redo the capture
      	and restore of the Ghost mode.
      	(Restore_Globals): Removed.
      	* exp_ch6.adb (Expand_N_Procedure_Call_Statement):
      	Redo the capture and restore of the Ghost mode.
      	(Expand_N_Subprogram_Body): Redo the capture, set and restore
      	of the Ghost mode.
      	(Expand_N_Subprogram_Declaration): Do not
      	capture, set and restore the Ghost mode.
      	(Restore_Globals): Removed.
      	* exp_ch7.adb (Expand_N_Package_Body): Redo the capture, set
      	and restore of the Ghost mode.
      	(Expand_N_Package_Declaration): Do not capture, set and restore the
      	Ghost mode.
      	* exp_ch8.adb (Expand_N_Exception_Renaming_Declaration):
      	Redo the capture and restore of the Ghost mode.
      	(Expand_N_Object_Renaming_Declaration): Redo
      	the capture and restore of the Ghost mode.
      	(Expand_N_Package_Renaming_Declaration):
      	Redo the capture and restore of the Ghost mode.
      	(Expand_N_Subprogram_Renaming_Declaration): Redo the capture
      	and restore of the Ghost mode.
      	* exp_ch11.adb Remove with and use clauses for Ghost.
      	(Expand_N_Exception_Declaration): Do not capture, set and restore
      	the Ghost mode.
      	* exp_disp.adb (Make_DT): Redo the capture and restore of the
      	Ghost mode.
      	(Restore_Globals): Removed.
      	* exp_prag.adb (Expand_Pragma_Check): Do not capture, set
      	and restore the Ghost mode.
      	(Expand_Pragma_Contract_Cases):
      	Redo the capture and restore of the Ghost mode.  Preserve the
      	original context of contract cases by setting / resetting the
      	In_Assertion_Expr counter.
      	(Expand_Pragma_Initial_Condition):
      	Redo the capture and restore of the Ghost mode.
      	(Expand_Pragma_Loop_Variant): Redo the capture and restore of
      	the Ghost mode.
      	(Restore_Globals): Removed.
      	* exp_util.adb (Make_Predicate_Call): Redo the capture and
      	restore of the Ghost mode.
      	(Restore_Globals): Removed.
      	* freeze.adb (Freeze_Entity): Redo the capture and restore of
      	the Ghost mode.
      	(Restore_Globals): Removed.
      	* ghost.adb (Check_Ghost_Context): Remove the RM reference from
      	the error message.
      	(Is_OK_Statement): Account for statements
      	that appear in assertion expressions.
      	(Is_Subject_To_Ghost):
      	Moved from spec.
      	* ghost.ads (Is_Subject_To_Ghost): Moved to body.
      	* rtsfind.ads (Load_RTU): Redo the capture and restore of the
      	Ghost mode.
      	* sem.adb Add with and use clauses for Ghost.
      	(Analyze): Redo
      	the capture and restore of the Ghost mode. Set the Ghost mode
      	when analyzing a declaration.
      	(Do_Analyze): Redo the capture
      	and restore of the Ghost mode.
      	* sem_ch3.adb (Analyze_Full_Type_Declaration): Do not capture, set
      	and restore the Ghost mode.
      	(Analyze_Incomplete_Type_Decl):
      	Do not capture, set and restore the Ghost mode.
      	(Analyze_Number_Declaration): Do not capture, set and restore the
      	Ghost mode.
      	(Analyze_Object_Declaration): Do not capture, set and
      	restore the Ghost mode.
      	(Analyze_Private_Extension_Declaration):
      	Do not capture, set and restore the Ghost mode.
      	(Analyze_Subtype_Declaration): Do not capture, set and restore
      	the Ghost mode.
      	(Restore_Globals): Removed.
      	* sem_ch5.adb (Analyze_Assignment): Redo the capture and restore
      	of the Ghost mode.
      	(Restore_Globals): Removed.
      	* sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration):
      	Do not capture, set and restore the Ghost mode.
      	(Analyze_Procedure_Call): Redo the capture and restore of the
      	Ghost mode.
      	(Analyze_Subprogram_Body_Helper): Redo the capture
      	and restore of the Ghost mode.	(Analyze_Subprogram_Declaration):
      	Do not capture, set and restore the Ghost mode.
      	(Restore_Globals): Removed.
      	* sem_ch7.adb (Analyze_Package_Body_Helper): Redo the capture and
      	restore of the Ghost mode.
      	(Analyze_Package_Declaration):
      	Do not capture, set and restore the Ghost mode.
      	(Analyze_Private_Type_Declaration): Do not capture, set and
      	restore the Ghost mode.
      	(Restore_Globals): Removed.
      	* sem_ch8.adb (Analyze_Exception_Renaming): Do not capture,
      	set and restore the Ghost mode.
      	(Analyze_Generic_Renaming): Do not capture, set and restore the Ghost
      	mode.
      	(Analyze_Object_Renaming): Do not capture, set and restore the
      	Ghost mode.
      	(Analyze_Package_Renaming): Do not capture, set and restore the Ghost
      	mode.
      	(Analyze_Subprogram_Renaming): Do not capture, set and restore the
      	Ghost mode.
      	(Restore_Globals): Removed.
      	* sem_ch11.adb (Analyze_Exception_Declaration): Do not capture,
      	set and restore the Ghost mode.
      	* sem_ch12.adb (Analyze_Generic_Package_Declaration):
      	Do not capture, set and restore the Ghost mode.
      	(Analyze_Generic_Subprogram_Declaration): Do not capture, set
      	and restore the Ghost mode.
      	* sem_ch13.adb (Build_Invariant_Procedure_Declaration): Redo
      	the capture and restore of the Ghost mode.
      	* sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part):
      	Redo the capture and restore of the Ghost mode.
      	(Analyze_External_Property_In_Decl_Part):
      	Redo the capture and restore of the Ghost mode.
      	(Analyze_Initial_Condition_In_Decl_Part): Redo the
      	capture and restore of the Ghost mode.	(Analyze_Pragma):
      	Do not capture, set and restore the Ghost mode for Assert.
      	Redo the capture and restore of the Ghost mode for Check. Do
      	not capture and restore the Ghost mode for Invariant.
      	(Analyze_Pre_Post_Condition_In_Decl_Part): Redo the capture and
      	restore of the Ghost mode.
      	* sem_res.adb (Resolve): Capture, set and restore the Ghost mode
      	when resolving a declaration.
      	* sem_util.adb (Build_Default_Init_Cond_Procedure_Body):
      	Redo the capture and restore of the Ghost mode.
      	(Build_Default_Init_Cond_Procedure_Declaration): Redo the capture
      	and restore of the Ghost mode.
      
      From-SVN: r228871
      Hristian Kirtchev committed
    • tree.c (recompute_tree_invariant_for_addr_expr): Assert that the argument is an ADDR_EXPR. · f7bad97d
      	* tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
      	argument is an ADDR_EXPR.
      
      From-SVN: r228870
      Eric Botcazou committed
    • [multiple changes] · 872dae48
      2015-10-16  Bob Duff  <duff@adacore.com>
      
      	* debug.adb: Document -gnatdQ switch.
      
      2015-10-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Analyze_Formal_Subprogram): Implement rule that
      	a formal abstract subprogram cannot have a null default: RM 12.6
      	(4 1.2).
      
      From-SVN: r228869
      Arnaud Charlet committed
    • sem_util.ads, [...]: Minor comment fixes. · 1bc619ef
      2015-10-16  Bob Duff  <duff@adacore.com>
      
      	* sem_util.ads, sinput.ads, bcheck.adb: Minor comment fixes.
      
      From-SVN: r228868
      Bob Duff committed
    • [multiple changes] · 11352209
      2015-10-16  Javier Miranda  <miranda@adacore.com>
      
      	* inline.adb (Add_Inlined_Body): Ensure that
      	Analyze_Inlined_Bodies will be invoked after completing the
      	analysis of the current unit.
      
      2015-10-16  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Fix error
      	message for bad last bit position.
      	* sem_ch3.adb, sem_util.adb, sem_util.ads: Minor reformatting.
      
      2015-10-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch5.adb (Expand_N_Case_Statement): If expression is
      	compile-time known but does not obey a static predicate on
      	its type, replace the case statement with a raise statement,
      	as with other statically detected constraint violations.
      
      2015-10-16  Bob Duff  <duff@adacore.com>
      
      	* s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
      	Reinstate code.
      	* opt.ads: Minor typo.
      
      From-SVN: r228866
      Arnaud Charlet committed
    • sem_util.adb (Gather_Components): When gathering components of a nested variant... · 251b6a47
      2015-10-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Gather_Components): When gathering components
      	of a nested variant, the record type used in legality checks is
      	the enclosing record type.
      
      From-SVN: r228865
      Ed Schonberg committed
    • gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build and get rid of… · 74e3c262
      gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build and get rid of force_gimple_operand_gsi.
      
      2015-10-16  Richard Biener  <rguenther@suse.de>
      
      	* gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
      	and get rid of force_gimple_operand_gsi.
      	(gimple_fold_builtin_memory_chk): Likewise.
      	(gimple_fold_builtin_stxcpy_chk): Likewise.
      	(rewrite_to_defined_overflow): Likewise.
      	(gimple_convert_to_ptrofftype): New function.
      	* gimple-fold.h (gimple_convert_to_ptrofftype): New overload,
      	declare.
      
      From-SVN: r228863
      Richard Biener committed
    • tree-nested.h (build_addr): Adjust prototype. · aa00059c
      2015-10-16  Richard Biener  <rguenther@suse.de>
      
      	* tree-nested.h (build_addr): Adjust prototype.
      	* tree-nested.c (build_addr): Remove context argument and use
      	mark_addressable.
      	(get_static_chain): Adjust calls to build_addr.
      	(convert_nl_goto_reference): Likewise.
      	(convert_tramp_reference_op): Likewise.
      	(finalize_nesting_tree_1): Likewise.
      	* value-prof.c (gimple_ic): Likewise.
      	* gimple-low.c (lower_builtin_setjmp): Likewise.
      	* tree-parloops.c (take_address_of): Likewise.
      	(create_call_for_reduction_1): Likewise.
      	* tree-profile.c (gimple_gen_interval_profiler): Likewise.
      	(gimple_gen_ic_func_profiler): Likewise.
      
      	fortran/
      	* trans-intrinsic.c (gfc_conv_intrinsic_lib_function): Adjust
      	calls to build_addr.
      	(gfc_conv_intrinsic_mod): Likewise.
      	(gfc_conv_intrinsic_ctime): Likewise.
      	(gfc_conv_intrinsic_fdate): Likewise.
      	(gfc_conv_intrinsic_ttynam): Likewise.
      	(gfc_conv_intrinsic_minmax_char): Likewise.
      	(gfc_conv_intrinsic_index_scan_verify): Likewise.
      	(gfc_conv_intrinsic_trim): Likewise.
      
      From-SVN: r228862
      Richard Biener committed
    • re PR c++/67926 (Using folding expressions in a constexpr context ice's) · 4856a1f0
      /cp
      2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/67926
      	* constexpr.c (potential_constant_expression_1): Handle
      	UNARY_LEFT_FOLD_EXPR, UNARY_RIGHT_FOLD_EXPR, BINARY_LEFT_FOLD_EXPR,
      	BINARY_RIGHT_FOLD_EXPR.
      
      /testsuite
      2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/67926
      	* g++.dg/cpp1z/fold-ice1.C: New.
      
      From-SVN: r228861
      Paolo Carlini committed
    • ipa-icf-gimple.c (func_checker::compare_operand): Compare only empty constructors. · 08a7f38f
      	* ipa-icf-gimple.c (func_checker::compare_operand): Compare only
      	empty constructors.
      
      From-SVN: r228860
      Jan Hubicka committed
    • Daily bump. · 498a904f
      From-SVN: r228858
      GCC Administrator committed
  2. 15 Oct, 2015 12 commits
  3. 14 Oct, 2015 8 commits