1. 11 Oct, 2010 40 commits
    • picochip-protos.h (picochip_function_arg): Delete. · c159751b
      	* config/picochip/picochip-protos.h (picochip_function_arg): Delete.
      	(picochip_incoming_function_arg): Delete.
      	(picochip_arg_advance): Delete.
      	* config/picochip/picochip.h (FUNCTION_ARG): Delete.
      	(FUNCTION_INCOMING_ARG): Delete.
      	(FUNCTION_ARG_ADVANCE): Delete.
      	* config/picochip/picochip.c (picochip_function_arg): Take a
      	const_tree and a bool.
      	(picochip_incoming_function_arg): Likewise.
      	(picochip_arg_advance): Likewise.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
      	(TARGET_FUNCTION_ARG_ADVANCE): Define.
      
      From-SVN: r165312
      Hariharan Sandanagobalane committed
    • Add missing ChangeLog. · 3414bf53
      From-SVN: r165311
      Andi Kleen committed
    • lto-plugin.c (dump_symtab): Correct printf argument type. · 9df2493c
      2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
      
              * lto-plugin.c (dump_symtab): Correct printf argument type.
              (finish_conflict_resolution): Initialize resolution.
      
      From-SVN: r165310
      Kai Tietz committed
    • Fix typo in earlier checksum change · a2a997ba
      I'm checking in a fix as obvious for this typo in the earlier checksum
      change.
      
      gcc/objcp
      
      2010-10-11  Andi Kleen  <ak@linux.intel.com>
      
      	* Make-lang.in (cc1objplus-checksum.c): Use correct temporary
      	name.
      
      From-SVN: r165309
      Andi Kleen committed
    • re PR middle-end/45955 (FAIL: gcc.dg/initpri1.c (test for excess errors)) · 7d26a391
      	PR middle-end/45955
      	* ipa.c (build_cdtor): Delete endless loop.
      
      From-SVN: r165308
      John David Anglin committed
    • pt.c (tsubst_default_argument): Handle DEFAULT_ARG. · e90b1c4a
      	* pt.c (tsubst_default_argument): Handle DEFAULT_ARG.
      	(tsubst_default_arguments): Only do this once for cloned fns.
      	(tsubst): Use typedef_variant_p.  Handle LANG_TYPE.  Don't
      	handle expressions.
      	(tsubst_expr): Avoid calling tsubst_expr for non-expressions.
      	(tsubst_copy_and_build): Likewise.
      	(tsubst_initializer_list): Likewise.
      	(tsubst_copy): Change default to gcc_unreachable.  Handle
      	OVERLOAD and PTRMEM_CST.
      
      From-SVN: r165307
      Jason Merrill committed
    • re PR lto/45959 (ICE: tree code 'template_type_parm' is not supported in gimple… · 9c3c8ad7
      re PR lto/45959 (ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr)
      
      	PR lto/45959
      	PR lto/45960
      	* pt.c (tsubst_copy) [INTEGER_CST]: Instantiate the type.
      
      From-SVN: r165306
      Jason Merrill committed
    • Build compiler checksum from object files v2 · d6d5951a
      gcc/
      
      2010-10-07  Andi Kleen  <ak@linux.intel.com>
      
      	* Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
      	checksum-options.
      	(checksum-options): Add.
      	(cc1-dummy): Remove.
      	(cc1-checksum): Change to run checksum over object files
      	and options only.
      	* dummy-checksum.c: Remove.
      	* genchecksum.c: Update copyright.
      	(usage): Allow multiple arguments.
      	(BLOCKSIZE): Add.
      	(dosum): Change for incremental checksum. Remove C output.
      	(main): Iterate over all argument files. Add C output.
      
      gcc/cp
      
      2010-10-07  Andi Kleen  <ak@linux.intel.com>
      
      	* Make-lang.in (c++_OBJS): Remove dummy-checksum.o.
      	(cc1plus-dummy): Remove.
      	(cc1plus-checksum): Change to run checksum over object files
              and options only.
      
      gcc/objc
      
      2010-10-07  Andi Kleen  <ak@linux.intel.com>
      
      	* Make-lang.in (cc1obj-dummy): Remove.
      	(cc1obj-checksum): Change to run checksum over object files
              and options only.
      
      gcc/objcp
      
      2010-10-07  Andi Kleen  <ak@linux.intel.com>
      
      	* Make-lang.in (cc1objplus-dummy): Remove.
      	(cc1objplus-checksum): Change to run checksum over object files
              and options only.
      
      From-SVN: r165305
      Andi Kleen committed
    • params.c (set_param_value_internal): New. · 128dc8e2
      	* params.c (set_param_value_internal): New.
      	(set_param_value): Use set_param_value_internal.
      	(maybe_set_param_value, set_default_param_value): New.
      	* params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
      	(maybe_set_param_value, set_default_param_value): Declare.
      	* config/arm/arm.c (arm_option_override): Use
      	maybe_set_param_value.
      	* config/i386/i386.c (ix86_option_override_internal): Use
      	maybe_set_param_value.
      	* config/ia64/ia64.c (ia64_option_default_params,
      	TARGET_OPTION_DEFAULT_PARAMS): New.
      	(ia64_option_optimization): Move some code to
      	ia64_option_default_params.
      	* config/picochip/picochip.c (picochip_option_override): Use
      	maybe_set_param_value.
      	* config/rs6000/rs6000.c (rs6000_option_default_params,
      	TARGET_OPTION_DEFAULT_PARAMS): New.
      	(rs6000_option_override_internal): Use maybe_set_param_value.
      	(rs6000_option_optimization): Move some code to
      	rs6000_option_default_params.
      	* config/s390/s390.c (s390_option_override): Use
      	maybe_set_param_value.
      	* config/sh/sh.c (sh_option_default_params,
      	TARGET_OPTION_DEFAULT_PARAMS): New.
      	(sh_option_optimization): Move some code to
      	sh_option_default_params.
      	* config/sparc/sparc.c (sparc_option_override): Use
      	maybe_set_param_value.
      	* config/spu/spu.c (spu_option_default_params,
      	TARGET_OPTION_DEFAULT_PARAMS): New.
      	(spu_option_optimization): Move some code to
      	spu_option_default_params.
      	(spu_option_override): Use maybe_set_param_value.
      	* doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
      	* doc/tm.texi: Regenerate.
      	* ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
      	* opts.c (init_options_once): Use PARAM_VALUE not direct access to
      	compiler_params.
      	(default_options_optimization): Use maybe_set_param_value.
      	(finish_options): Use maybe_set_param_value.
      	* target.def (target_option.default_params): New hook.
      	* toplev.c (general_init): Call
      	targetm.target_option.default_params.
      
      From-SVN: r165303
      Joseph Myers committed
    • re PR tree-optimization/45902 (CPU2006 benchmark sphinx3 fails with vectorization) · 49077698
      
      	PR tree-optimization/45902
      	* tree-vect-slp.c (vect_get_constant_vectors): Use statement's
      	vector type for constants, unless it's a pointer.
      
      From-SVN: r165302
      Ira Rosen committed
    • s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg. · a6510374
      2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
      
      From-SVN: r165301
      Andreas Krebbel committed
    • [multiple changes] · c159409f
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* g-htable.ads (Get_First): New procedural version for Simple_HTable
      	(Get_Next): New procedural version for Simple_HTable
      	* s-htable.adb (Get_First): New procedural version for Simple_HTable
      	(Get_Next): New procedural version for Simple_HTable
      	* s-htable.ads (Get_First): New procedural version for Simple_HTable
      	(Get_Next): New procedural version for Simple_HTable
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_aggr.adb (Propagate_Discriminants): To gather the components of a
      	variant part, use the association list of the subaggregate, which
      	already includes the values of the needed discriminants.
      
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* aspects.ads, aspects.adb: Changes to accomodate aspect delay
      	(Tree_Write): New procedure.
      	* atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
      	nodes.
      	* atree.h: Flag3 is now Has_Aspects and applies to all nodes
      	* debug.adb: Add debug flag gnatd.A
      	* einfo.adb (Has_Delayed_Aspects): New flag
      	(Get_Rep_Item_For_Entity): New function
      	* einfo.ads (Has_Delayed_Aspects): New flag
      	(Get_Rep_Item_For_Entity): New function
      	* exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
      	tree.
      	* exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
      	sequence for Freeze_Entity.
      	* freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
      	ptr. All calls are changed to this new interface.
      	(Freeze_And_Append): Same change
      	(Freeze_Entity): Evaluate deferred aspects
      	* sem_attr.adb: New calling sequence for Freeze_Entity
      	(Eval_Attribute): Don't try to evaluate attributes of unfrozen types
      	when we are in spec expression preanalysis mode.
      	* sem_ch10.adb: New calling sequence for Freeze_Entity
      	* sem_ch11.adb: Simplify analysis of aspect specifications now that the
      	flag Has_Aspects applies to all nodes (no need to save aspects).
      	* sem_ch12.adb: Simplify analysis of aspect specifications now that the
      	flag Has_Aspects applies to all nodes (no need to save aspects).
      	* sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
      	accomodate delaying aspect evaluation to the freeze point.
      	(Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
      	accomodate delayed aspects.
      	(Rep_Item_Too_Late): Deal with delayed aspects case
      	* sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed aspects
      	* sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
      	actual types are properly frozen (this is needed because of the new
      	check in Eval_Attribute that declines to evaluate attributes
      	for unfrozen types).
      	Simplify analysis of aspect specifications now that the flag
      	Has_Aspects applies to all nodes (no need to save aspects).
      	* sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed aspects
      	* sem_ch5.adb: Simplify analysis of aspect specifications now that the
      	flag Has_Aspects applies to all nodes (no need to save aspects).
      	New calling sequence for Freeze_Entity.
      	* sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
      	specifications now that the flag Has_Aspects applies to all nodes
      	(no need to save aspects).
      	New calling sequence for Freeze_Entity
      	* sem_prag.adb (Check_Duplicate_Pragma): Simplify using
      	Get_Rep_Item_For_Entity
      	(Get_Pragma_Arg): Moved to Sinfo
      	* sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
      	(Is_Delayed_Aspect): New flag
      	(Next_Rep_Item): Document use for aspects
      	(Get_Pragma_Arg): Moved here from Sem_Prag
      	* sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
      	is output and removes semicolon (simplifies interface).
      	(Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
      	applies to any node.
      	* tree_gen.adb: Write contents of Aspect_Specifications hash table
      	* tree_in.adb: Read and initialize Aspect_Specifications hash table
      	* treepr.adb (Print_Node): Print Has_Aspects flag
      	(Print_Node): Print Aspect_Specifications in Has_Aspects set
      	* xtreeprs.adb: Remove obsolete references to Flag1,2,3
      
      From-SVN: r165300
      Arnaud Charlet committed
    • [multiple changes] · 0f1a6a0b
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* aspects.ads, aspects.adb: Major revision of this package for 2nd
      	stage of aspects implementation.
      	* gcc-interface/Make-lang.in: Add entry for aspects.o
      	* gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
      	* par-ch13.adb (Aspect_Specifications_Present): New function
      	(P_Aspect_Specifications): New procedure
      	* par-ch3.adb (P_Type_Declaration): Handle aspect specifications
      	(P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
      	(P_Identifier_Declarations): Handle aspect specifications
      	(P_Component_Items): Handle aspect specifications
      	(P_Subtype_Declaration): Handle aspect specifications
      	* par-ch6.adb (P_Subprogram): Handle aspect specifications
      	* par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
      	* par.adb (Aspect_Specifications_Present): New function
      	(P_Aspect_Specifications): New procedure
      	* sem.adb (Analyze_Full_Type_Declaration): New name for
      	Analyze_Type_Declaration.
      	(Analyze_Formal_Package_Declaration): New name (add _Declaration)
      	(Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
      	(Analyze_Protected_Type_Declaration): New name (add _Declaration)
      	(Analyze_Single_Protected_Declaration): New name (add _Declaration)
      	(Analyze_Single_Task_Declaration): New name (add _Declaration)
      	(Analyze_Task_Type_Declaration): New name (add _Declaration)
      	* sem_cat.adb (Analyze_Full_Type_Declaration): New name for
      	Analyze_Type_Declaration.
      	* sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
      	specifications.
      	* sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
      	specifications.
      	(Analyze_Formal_Package_Declaration): New name (add _Declaration)
      	(Analyze_Formal_Package_Declaration): Handle aspect specifications
      	(Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
      	(Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
      	(Analyze_Formal_Type_Declaration): Handle aspect specifications
      	(Analyze_Generic_Package_Declaration): Handle aspect specifications
      	(Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
      	(Analyze_Package_Instantiation): Handle aspect specifications
      	(Analyze_Subprogram_Instantiation): Handle aspect specifications
      	* sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
      	_Declaration).
      	(Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
      	* sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
      	(Duplicate_Clause): New function, calls to this function are added to
      	processing for all aspects.
      	* sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
      	* sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
      	Analyze_Type_Declaration.
      	* sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
      	Analyze_Type_Declaration.
      	* sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
      	specifications.
      	(Analyze_Subprogram_Declaration): Analyze aspect specifications
      	* sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
      	specifications.
      	(Analyze_Private_Type_Declaration): Analyze aspect specifications
      	* sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
      	specifications.
      	(Analyze_Protected_Type_Declaration): New name (add _Declaration)
      	(Analyze_Single_Protected_Declaration): Analyze aspect specifications
      	(Analyze_Single_Protected_Declaration): New name (add _Declaration)
      	(Analyze_Single_Task_Declaration): Analyze aspect specifications
      	(Analyze_Single_Task_Declaration): New name (add _Declaration)
      	(Analyze_Task_Type_Declaration): Analyze aspect specifications
      	(Analyze_Task_Type_Declaration): New name (add _Declaration)
      	* sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
      	_Declaration).
      	(Analyze_Single_Protected_Declaration): New name (add _Declaration)
      	(Analyze_Single_Task_Declaration): New name (add _Declaration)
      	(Analyze_Task_Type_Declaration): New name (add _Declaration)
      	* sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
      	have to generate unnecessary pragma argument associations (this matches
      	the doc).
      	Throughout do changes to accomodate aspect specifications, including
      	specializing messages, handling the case of not going through all
      	homonyms, and allowing for cancellation.
      	* sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
      	(Aspect_Cancel): New flag
      	(From_Aspect_Specification): New flag
      	(First_Aspect): Removed flag
      	(Last_Aspect): Removed flag
      	* sprint.adb (Sprint_Aspect_Specifications): New procedure
      	(Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
      
      2010-10-11  Bob Duff  <duff@adacore.com>
      
      	* sem_res.adb (Resolve_Actuals): Minor change to warning messages so
      	they match in Ada 95, 2005, and 2012 modes, in the case where the
      	language didn't change. Same thing for the run-time exception message.
      
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* debug.adb Document that switch -gnatd.p enables the CIL verifier.
      
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* s-htable.adb: Minor reformatting.
      
      From-SVN: r165299
      Arnaud Charlet committed
    • [multiple changes] · 1237d6ef
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* debug.adb: Update comment.
      
      2010-10-11  Vincent Celier  <celier@adacore.com>
      
      	* gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
      	unconditionally as for "gnat make" the projects are not processed in
      	the GNAT driver.
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
      	suppress semantic analysis of the body when inlining, prior to
      	verifying that the body does not have a with_clause on a descendant
      	unit.
      	* inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
      	with_clause on a descendant. 
      	(Scope_In_Main_Unit): Simplify.
      
      From-SVN: r165298
      Arnaud Charlet committed
    • exp_ch6.adb, freeze.adb: Minor reformatting. · 3cae7f14
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch6.adb, freeze.adb: Minor reformatting.
      
      From-SVN: r165297
      Robert Dewar committed
    • [multiple changes] · 76b5b000
      2010-10-11  Vincent Celier  <celier@adacore.com>
      
      	* gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
      	shared library projects to import projects that are not shared library
      	projects.
      
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* debug.adb: Document that switch -gnatd.o generates the CIL listing.
      
      2010-10-11  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
      	Suppress/Unsuppress pragmas in codepeer mode on user code.
      
      From-SVN: r165296
      Arnaud Charlet committed
    • [multiple changes] · dd386db0
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
      	tag check in case of dispatching call through "=".
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
      	type is legal in the profile of any basic declaration.
      	* sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
      	incomplete type, including a limited view of a type, is legal in the
      	profile of any subprogram declaration.
      	If the type is tagged, its use is also legal in a body.
      	* sem_ch10.adb (Install_Limited_With_Clause): Do not process context
      	item if misplaced.
      	(Install_Limited_Withed_Unit): Refine legality checks when both the
      	limited and the non-limited view of a package are visible in the context
      	of a unit.
      	If this is not an error case, the limited view is ignored.
      	freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
      	access to subprogram declarations
      
      From-SVN: r165295
      Arnaud Charlet committed
    • exp_ch6.adb: Code clean up. · 6dfc5592
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch6.adb: Code clean up.
      	* exp_util.adb: Minor reformatting.
      
      From-SVN: r165294
      Robert Dewar committed
    • [multiple changes] · 44bf8eb0
      2010-10-11  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_ch3.adb, exp_ch6.adb
      	(Make_Build_In_Place_Call_In_Anonymous_Context,
      	Make_Build_In_Place_Call_In_Assignment,
      	Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
      	Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
      	restriction.
      	(Access_Definition): Add missing handling of No_Task_Hierarchy.
      
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* exp_util.adb (Remove_Side_Effects): No action needed for renamings of
      	class-wide expressions.
      
      From-SVN: r165293
      Arnaud Charlet committed
    • * xr_tabls.adb, sem_res.adb: Minor reformattingem_res.adb · cead616d
      From-SVN: r165292
      Arnaud Charlet committed
    • gnat_rm.texi, [...] (Analyze_Attribute, [...]): Add handling of Attribute_Ref. · 1b0b0f18
      2010-10-11  Arnaud Charlet  <charlet@adacore.com>
      
      	* gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
      	snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
      	handling of Attribute_Ref. Add missing blanks in some error messages.
      	(Attribute_Ref, Name_Ref): Declare.
      	Document 'Ref attribute.
      
      From-SVN: r165291
      Arnaud Charlet committed
    • [multiple changes] · ddc1515a
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* sem_attr.adb: Minor reformatting.
      
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
      	package System.Aux_Dec in VM platforms.
      
      2010-10-11  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_prag.adb (Process_Suppress_Unsuppress): Ignore
      	Suppress/Unsuppress pragmas in codepeer mode.
      	(Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message in
      	codepeer mode.
      	* einfo.ads: Fix typo.
      
      From-SVN: r165290
      Arnaud Charlet committed
    • [multiple changes] · 1aa23421
      2010-10-11  Emmanuel Briot  <briot@adacore.com>
      
      	* sinfo.adb: Use GNAT.HTable rather than System.HTable.
      	* prj-nmsc.adb: Minor reformatting.
      
      2010-10-11  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_attr.adb (Type_Key): Code simplification.
      
      From-SVN: r165289
      Arnaud Charlet committed
    • utils2.c (maybe_wrap_malloc): Fix crash when allocating very large object on VMS. · 9c8e862b
      2010-10-11  Tristan Gingold  <gingold@adacore.com>
      
      	* gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
      	very large object on VMS.
      
      From-SVN: r165288
      Tristan Gingold committed
    • [multiple changes] · 76e3504f
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
      	availability of attribute Instance_Spec.
      
      2010-10-11  Arnaud Charlet  <charlet@adacore.com>
      
      	* gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
      	checking syntax only or in ASIS mode.
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
      	need a freeze node if some type in the profile has one.
      	* gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
      	entity has a freeze node, defer elaboration.
      
      2010-10-11  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
      	aggregated projects.
      
      From-SVN: r165287
      Arnaud Charlet committed
    • [multiple changes] · ae6ede77
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
      	call.
      	* sem_ch6.adb: Diagnose additional error condition.
      
      2010-10-11  Bob Duff  <duff@adacore.com>
      
      	* par.adb (Par): Clarify wording of certain error messages.
      
      From-SVN: r165286
      Arnaud Charlet committed
    • [multiple changes] · 9c870c90
      2010-10-11  Gary Dismukes  <dismukes@adacore.com>
      
      	* sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
      	about nondispatching subprograms to use In_Same_List (reducing use of
      	Parent links).
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
      	reference in a static call.
      
      2010-10-11  Steve Baird  <baird@adacore.com>
      
      	* exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
      	attribute should always be transformed into a string literal in
      	Analyze_Attribute.
      	* par-ch4.adb: Type_Key attribute's type is String; update value of
      	Is_Parameterless_Attribute constant to reflect this.
      	* sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
      	rewrite it as a string literal (attribute value is always known
      	statically).
      	* snames.ads-tmpl: Add entries for Type_Key attribute.
      
      From-SVN: r165285
      Arnaud Charlet committed
    • [multiple changes] · 21a5b575
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* lib-xref.adb (Output_References): Common handling for objects and
      	formals of an anonymous access type.
      
      2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
      
      2010-10-11  Gary Dismukes  <dismukes@adacore.com>
      
      	* sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
      	a warning about subprograms of a tagged type not being dispatching,
      	limit this to cases where the tagged type and the subprogram are
      	declared within the same declaration list.
      
      2010-10-11  Jerome Lambourg  <lambourg@adacore.com>
      
      	* projects.texi, prj-attr.adb: Add new attribute documentation_dir.
      
      From-SVN: r165284
      Arnaud Charlet committed
    • par-ch9.adb, [...]: Use Ada_2005 instead of Ada_05 (Ada_Version_Type). · 0791fbe9
      2010-10-11  Bob Duff  <duff@adacore.com>
      
      	* par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
      	impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
      	switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
      	sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
      	sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
      	sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
      	sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
      	exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
      	exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
      	exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
      	instead of Ada_05 (Ada_Version_Type).
      
      From-SVN: r165283
      Bob Duff committed
    • [multiple changes] · dbe945f1
      2010-10-11  Bob Duff  <duff@adacore.com>
      
      	* sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
      	sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
      	par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
      	opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
      	(Ada_Version_Type).
      
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
      	dereference then do not exclude dereferences of access-to-constant
      	types to handle them as constant view of variables (and hence remove
      	side effects when required).
      	* sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
      	are properly handled.
      
      From-SVN: r165282
      Arnaud Charlet committed
    • [multiple changes] · 2b3d67a5
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
      
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
      	to exp_ch6.
      	(Expand_N_Simple_Return_Statement): Moved to exp_ch6.
      	* exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
      	exp_ch6.
      	(Expand_Simple_Function_Return): Move to exp_ch6.
      	(Expand_N_Extended_Return_Statement): Moved to exp_ch6.
      	(Expand_N_Simple_Return_Statement): Moved to exp_ch6.
      
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* snames.ads-tmpl: Add names for aspects.
      	* aspects.ads, aspects.adb: New.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      From-SVN: r165281
      Arnaud Charlet committed
    • [multiple changes] · fb468a94
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
      	a task type, it must be replaced with a reference to Self.
      
      2010-10-11  Vincent Celier  <celier@adacore.com>
      
      	* adaint.h: Add prototype for function __gnat_create_output_file_new.
      
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
      	aggregate bounds.
      
      From-SVN: r165280
      Arnaud Charlet committed
    • [multiple changes] · 313d6f2c
      2010-10-11  Arnaud Charlet  <charlet@adacore.com>
      
              * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
              for AI05-0033 in CodePeer mode.
      
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
              * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
              * csinfo.adb: Aspect_Specifications is a new special field
              * einfo.adb (Flag3): New unused flag
              * exp_util.adb (Insert_Actions): Add processing for
              N_Aspect_Specification.
              * sem.adb: Add entry for N_Aspect_Specification.
              * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
              (Has_Aspect_Specifications): New flag
              (Permits_Aspect_Specifications): New function
              (Aspect_Specifications): New function
              (Set_Aspect_Specifications): New procedure
              * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
              (Sprint_Node): Add dummy entry for N_Aspect_Specification
              * treepr.adb (Flag3): New flag to be listed
      
      2010-10-11  Vincent Celier  <celier@adacore.com>
      
              * adaint.c: Minor reformatting.
      
      From-SVN: r165279
      Arnaud Charlet committed
    • [multiple changes] · 7b53cb49
      2010-10-11  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
      	for AI05-0033 in CodePeer mode.
      
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
      	* csinfo.adb: Aspect_Specifications is a new special field
      	* einfo.adb (Flag3): New unused flag
      	* exp_util.adb (Insert_Actions): Add processing for
      	N_Aspect_Specification.
      	* sem.adb: Add entry for N_Aspect_Specification.
      	* sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
      	(Has_Aspect_Specifications): New flag
      	(Permits_Aspect_Specifications): New function
      	(Aspect_Specifications): New function
      	(Set_Aspect_Specifications): New procedure
      	* sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
      	(Sprint_Node): Add dummy entry for N_Aspect_Specification
      	* treepr.adb (Flag3): New flag to be listed
      
      2010-10-11  Vincent Celier  <celier@adacore.com>
      
      	* adaint.c: Minor reformatting.
      
      From-SVN: r165278
      Arnaud Charlet committed
    • [multiple changes] · 20261dc1
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb, s-htable.ads: Minor reformatting.
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Analyze_Selected_Component): If the selector is
      	invisible in an instantiation, and both the formal and the actual are
      	private extensions of the same type, look for the desired component in
      	the proper view of the parent type.
      
      2010-10-11  Vincent Celier  <celier@adacore.com>
      
      	* adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
      	AIX, Tru64, Darwin, IRIX and HP-UX.
      
      From-SVN: r165277
      Arnaud Charlet committed
    • [multiple changes] · 9694c039
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* a-textio.adb: Minor reformatting
      
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* a-suesen.ads, a-suenst.ads,
      	a-suesen.adb, a-suenst.adb,
      	a-suewse.adb, a-suewst.adb,
      	a-suewse.ads, a-suewst.ads,
      	a-suezse.ads, a-suezst.ads,
      	a-suezse.adb, a-suezst.adb: New name for string encoding packages.
      	* impunit.adb: New names for string encoding units
      	* Makefile.rtl: New names for string encoding units
      	* rtsfind.ads: Minor code reorganization.
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch5.adb: Code clean up.
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
      	returns when in a generic context.
      	(Analyze_Function_Return): ditto.
      
      From-SVN: r165276
      Arnaud Charlet committed
    • s-multip.ads: Fix header. · 0144fd18
      2010-10-11  Robert Dewar  <dewar@adacore.com>
      
      	* s-multip.ads: Fix header.
      	* sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
      
      From-SVN: r165275
      Robert Dewar committed
    • Makefile.rtl: Add s-multip. · 7a259f2e
      2010-10-11  Vincent Celier  <celier@adacore.com>
      
      	* Makefile.rtl: Add s-multip.
      	* adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
      	defaulting to 1 for other platforms.
      	* adaint.h: New function __gnat_number_of_cpus.
      	* impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
      	with a single component "s-multip".
      	* impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
      	2012.
      	* rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
      	* s-multip.ads, s-multip.adb: New Ada 2012 package.
      	* sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
      
      From-SVN: r165274
      Vincent Celier committed
    • Fix header. · 06559852
      From-SVN: r165273
      Arnaud Charlet committed
    • [multiple changes] · b0887a43
      2010-10-11  Javier Miranda  <miranda@adacore.com>
      
      	* a-textio.adb: Move new implementation of Get_Line to a subunit.
      	* a-tigeli.adb: New subunit containing the implementation of Get_Line.
      
      2010-10-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_aux.adb: Code clean up.
      
      From-SVN: r165272
      Arnaud Charlet committed