1. 18 Apr, 2016 18 commits
    • contracts.adb (Analyze_Object_Contract): Update references to SPARK RM. · 4179af27
      2016-04-18  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* contracts.adb (Analyze_Object_Contract): Update references to
      	SPARK RM.
      	* freeze.adb (Freeze_Entity): Update references to SPARK RM.
      	* ghost.adb Add with and use clauses for Sem_Disp.
      	(Check_Ghost_Derivation): Removed.
      	(Check_Ghost_Overriding):
      	Reimplemented.	(Check_Ghost_Policy): Update references to SPARK RM.
      	(Check_Ghost_Primitive): New routine.
      	(Check_Ghost_Refinement): New routine.	(Is_OK_Ghost_Context):
      	Update references to SPARK RM.	(Is_OK_Pragma): Update references
      	to SPARK RM. Predicates are now a valid context for references
      	to Ghost entities.
      	* ghost.ads (Check_Ghost_Derivation): Removed.
      	(Check_Ghost_Overriding): Update the comment on usage.
      	(Check_Ghost_Primitive): New routine.
      	(Check_Ghost_Refinement): New routine.
      	(Remove_Ignored_Ghost_Code): Update references to SPARK RM.
      	* sem_ch3.adb (Process_Full_View): Remove the now obsolete check
      	related to Ghost derivations
      	* sem_ch6.adb (Check_Conformance): Remove now obsolete check
      	related to the convention-like behavior of pragma Ghost.
      	(Check_For_Primitive_Subprogram): Verify that the Ghost policy
      	of a tagged type and its primitive agree.
      	* sem_prag.adb (Analyze_Pragma): Update references to SPARK
      	RM. Move the verification of pragma Assertion_Policy Ghost
      	to the proper place. Remove the now obsolete check related
      	to Ghost derivations.
      	(Collect_Constituent): Add a call to Check_Ghost_Refinement.
      	* sem_res.adb (Resolve_Actuals): Update references to SPARK RM.
      
      From-SVN: r235115
      Hristian Kirtchev committed
    • [multiple changes] · 0d6014fa
      2016-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* layout.adb: Fix more minor typos in comments.
      
      2016-04-18  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* a-calend.ads, sem_prag.adb, sem_ch6.adb: Minor reformatting.
      
      From-SVN: r235114
      Arnaud Charlet committed
    • [multiple changes] · 539ca5ec
      2016-04-18  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): In GNATprove
      	mode, collect inherited class-wide conditions to generate the
      	corresponding pragmas.
      	* sem_prag.ads (Build_Pragma_Check_Equivalent): Moved from contracts
      	* contracts.adb (Collect_Inherited_Class_Wide_Conditions): New
      	procedure for overriding subprograms, used to generate the pragmas
      	corresponding to an inherited class- wide pre- or postcondition.
      	* sem_prag.adb (Build_Pragma_Check_Equivalent): moved here
      	from contracts.adb (Replace_Condition_Entities): Subsidiary
      	Build_Pragma_Check_Equivalent, to implement the proper semantics
      	of inherited class-wide conditions, as given in AI12-0113.
      	(Process_Class_Wide_Condition): Removed.
      	(Collect_Inherited_Class_Wide_Conditions): Iterate over pragmas
      	in contract of subprogram, to collect inherited class-wide
      	conditions.
      	(Build_Pragma_Check_Equivalent): Moved to sem_prag.adb
      
      2016-04-18  Yannick Moy  <moy@adacore.com>
      
      	* a-calend.adb (Ada.Calendar): Mark package body as SPARK_Mode Off.
      	* a-calend.ads (Ada.Calendar): Mark package spec as
      	SPARK_Mode and add synchronous external abstract state Clock_Time.
      
      From-SVN: r235113
      Arnaud Charlet committed
    • [multiple changes] · fd22e260
      2016-04-18  Yannick Moy  <moy@adacore.com>
      
      	* sem_res.adb (Resolve_Call): Prevent inlining of
      	calls inside expression functions.  Factor previous code issuing
      	errors to call Cannot_Inline instead, which does appropriate
      	processing of message for GNATprove.
      
      2016-04-18  Arnaud Charlet  <charlet@adacore.com>
      
      	* einfo.ads, sem_ch3.adb, sem_ch8.adb, osint-l.adb, rtsfind.adb,
      	osint-b.adb: Cleanups.
      
      2016-04-18  Yannick Moy  <moy@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Only create
      	body to inline in GNATprove mode when SPARK_Mode On applies to
      	subprogram body.
      	* sem_prag.adb, sem_prag.ads (Get_SPARK_Mode_Type): Make function
      	public.
      
      2016-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* layout.adb: Fix minor typo in comment.
      	* inline.adb: Fix minor pasto.
      	* sem_ch12.ads: Fix minor typos in comments.
      
      From-SVN: r235111
      Arnaud Charlet committed
    • [multiple changes] · 0d66b596
      2016-04-18  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_disp.adb (Check_Dispatching_Call): Major rewriting to
      	handle some complex cases of tag indeterminate calls that are
      	actuals in other dispatching calls that are themselves tag
      	indeterminate.
      	(Check_Dispatching_Context): Add parameter to support recursive
      	check for an enclosing construct that may provide a tag for a
      	tag-indeterminate call.
      
      2016-04-18  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_prag.adb (Analyze_Depends_In_Decl_Part):
      	Add global variables Task_Input_Seen and Task_Output_Seen.
      	(Analyze_Global_Item): Detect an illegal use of the current
      	instance of a single protected/task type in a global annotation.
      	(Analyze_Input_Output): Inputs and output related to the current
      	instance of a task unit are now tracked.
      	(Check_Usage): Require
      	the presence of the current instance of a task unit only when
      	one input/output is available.	(Current_Task_Instance_Seen):
      	New routine.
      	(Is_CCT_Instance): New parameter profile. Update
      	the comment on usage. The routine now properly recognizes several
      	cases related to single protected/task types.
      
      2016-04-18  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* freeze.adb (Freeze_Entity): Use New_Freeze_Node
      	to create a brand new freeze node. This handles a case where an
      	ignored Ghost context is freezing something which is not ignored
      	Ghost and whose freeze node should not be removed from the tree.
      	(New_Freeze_Node): New routine.
      
      2016-04-18  Jerome Lambourg  <lambourg@adacore.com>
      
      	* sigtramp.h (__gnat_set_is_vxsim) New function to
      	tell sigtramp-vxworks to handle vxsim signal contexts.	*
      	sigtramp-vxworks.c (__gnat_sigtramp) Take into account the
      	differences in the sigcontext structure between the expected
      	regular x86 or x86_64 ones and the ones received in case of
      	exexution on the vxworks simulator.
      	* init.c: also compute is_vxsim in case of x86_64-vx7 target. Provide
      	this information to sigtramp-vxworks.c. Remove the old mechanism for
      	vxsim.
      	* init-vxsim.c, sigtramp-vxworks-vxsim.c: remove, now obsolete.
      
      2016-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* exp_ch3.adb (Inline_Init_Proc): New function returning
      	whether the initialization procedure of a type should be
      	inlined.  Return again True for controlled type themselves.
      	(Build_Array_Init_Proc): Call it to set Set_Is_Inlined on Init_Proc.
      	(Build_Record_Init_Proc): Likewise.
      
      From-SVN: r235110
      Arnaud Charlet committed
    • gnatvsn.ads (Library_Version): Bump to 7. · a86c18d9
              * gnatvsn.ads (Library_Version): Bump to 7.
      
      From-SVN: r235109
      Arnaud Charlet committed
    • sem_ch6.adb (Analyze_Expression_Function): Set Inlined flag on the entity of a… · 88fa9a24
      sem_ch6.adb (Analyze_Expression_Function): Set Inlined flag on the entity of a subprogram declaration that is completed by...
      
      2016-04-18  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Analyze_Expression_Function): Set Inlined flag
      	on the entity of a subprogram declaration that is completed by
      	an expression function.
      
      2016-04-18  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Is_Current_Instance): A entity given by a subtype
      	declaration can appear in an aspect specification for a dynamic
      	predicate, and a pragma for aspect Predicate_Failure.
      	* exp_util.adb (Replace_Subtype_References): Replace current
      	occurrences of the subtype to which a dynamic predicate applies,
      	byt the expression that triggers a predicate check. Needed to
      	implement new aspect Predicate_Failure.
      
      From-SVN: r235107
      Ed Schonberg committed
    • [multiple changes] · 7b47778e
      2016-04-18  Arnaud Charlet  <charlet@adacore.com>
      
      	* a-intsig.ads, a-intsig.adb: Removed, no longer used.
      	* Makefile.rtl: update accordingly.
      
      2016-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* sem_type.adb (Disambiguate): Call Covers only when necessary
      	for standard operators.
      
      2016-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* atree.ads (Num_Extension_Nodes): Add couple of figures
      	to comment.
      	* atree.adb: Add GNAT.Heap_Sort_G dependency.
      	(Print_Statistics): New exported procedure to print statistics.
      
      2016-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* exp_ch3.adb (Build_Record_Init_Proc): Do not mark the procedure
      	as to be inlined if the type needs finalization.
      
      From-SVN: r235106
      Arnaud Charlet committed
    • * gcc-interface/decl.c: Rename Descendent -> Descendant · 6e9ecd1f
      From-SVN: r235104
      Vincent Celier committed
    • re PR middle-end/37870 (ICE in extract_bit_field_1) · f3a59e2e
      2016-04-18  Richard Biener  <rguenther@suse.de>
      
              PR middle-end/37870
      	* expmed.c (extract_bit_field_1): Remove broken case
      	using a wider MODE_INT mode.
      
      From-SVN: r235103
      Richard Biener committed
    • sigtramp-vxworks-target.inc: sigtramp-vxworks: force the stack alignment for x86_64. · 84538074
      2016-04-18  Jerome Lambourg  <lambourg@adacore.com>
      
      	* sigtramp-vxworks-target.inc: sigtramp-vxworks: force the stack
      	alignment for x86_64.
      	* init.c: Better fix for guard page reset on x86_64-vx7.
      	Do not try to retrieve the page that actually raised
      	the signal as the probing mechanism used on x86_64 do not allow
      	such retrieval. We thus just test if the guard page is active,
      	and re-activate it if not.
      
      From-SVN: r235102
      Jerome Lambourg committed
    • [multiple changes] · 230ad369
      2016-04-18  Arnaud Charlet  <charlet@adacore.com>
      
      	* a-sytaco.adb (Suspension_Object): Aspect Default_Initial_Condition
      	added.
      
      2016-04-18  Jerome Lambourg  <lambourg@adacore.com>
      
      	* affinity.c: Use the proper type for task id.
      	* init.c (__gnat_inum_to_ivec): ivec is a pointer.
      
      From-SVN: r235101
      Arnaud Charlet committed
    • [multiple changes] · d9d25d04
      2016-04-18  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_prag.adb (Process_Convention): Relax rule on exporting
      	Intrinsic types if Relaxed_RM_Semantics is True.
      
      2016-04-18  Vincent Celier  <celier@adacore.com>
      
      	* sem_ch3.adb, lib.ads, sinfo.ads, sem_ch10.adb, einfo.adb, einfo.ads,
      	checks.ads, sem_ch12.adb, sem.adb, sem_util.adb, sem_util.ads,
      	sem_res.adb, sem_attr.adb, par.adb, exp_ch4.adb, errout.ads,
      	sem_ch4.adb, atree.adb, atree.ads, sem_warn.adb, treepr.adb,
      	exp_ch3.ads, exp_unst.adb: Change "descendent" to
      	"descendant" in comments, error messages and identifiers.
      
      2016-04-18  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* sem_type.adb (Operator_Matches_Spec): Call First_Formal on
      	New_S only once at the beginning of the function.
      
      From-SVN: r235100
      Arnaud Charlet committed
    • hsa: Fix bootstrap with older host compilers · 939264d3
      We didn't have __builtin_swap16 on all targets before GCC 4.8; hsa-brig
      tries to use it if the host GCC is 4.6 or up though, breaking bootstrap.
      This trivial patch fixes it.
      
      Noticed on gcc22.
      
      
      	* has-brig.c (lendian16): Don't try to use __builtin_bswap16
      	unless compiling with at least GCC-4.8.
      
      From-SVN: r235096
      Segher Boessenkool committed
    • Add dot-file scans to pr70161.c · bd5c7330
      2016-04-18  Tom de Vries  <tom@codesourcery.com>
      
      	PR testsuite/70699
      	* gcc.dg/pr70161.c: Add dot-file scans.
      	* lib/scandump.exp (dump-suffix): Return suffix after first dot char,
      	instead of after last dot char.
      
      From-SVN: r235095
      Tom de Vries committed
    • Trivial comment misspelling. · 80dbaf98
      From-SVN: r235092
      Edward Smith-Rowland committed
    • Obvious typo in comment. · 9a9534e1
      From-SVN: r235091
      Edward Smith-Rowland committed
    • Daily bump. · 8e562648
      From-SVN: r235090
      GCC Administrator committed
  2. 17 Apr, 2016 14 commits
  3. 16 Apr, 2016 4 commits
    • re PR target/1078 (Problems with attributes documentation) · a4186552
      2016-04-16  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR target/1078
      
      	gcc/cp/
      	* tree.c (cxx_attribute_table): Remove "com_interface" entry.
      	(handle_com_interface_attribute): Delete.
      
      From-SVN: r235066
      Sandra Loosemore committed
    • re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) · cc950f98
      
      	PR ipa/70018
      	* cgraph.c (cgraph_set_const_flag_1): Only set as pure if
      	function does not bind to current def.
      	* ipa-pure-const.c (worse_state): Add FROM and TO parameters;
      	handle conservatively calls to functions that does not need to bind
      	to current def.
      	(check_call): Update call of worse_state.
      	(ignore_edge_for_nothrow): Update.
      	(ignore_edge_for_pure_const): Likewise.
      	(propagate_pure_const): Update calls to worse_state.
      	(skip_function_for_local_pure_const): Reformat comments.
      
      	* g++.dg/ipa/pure-const-1.C: New testcase.
      	* g++.dg/ipa/pure-const-2.C: New testcase.
      	* g++.dg/ipa/pure-const-3.C: New testcase.
      
      From-SVN: r235065
      Jan Hubicka committed
    • re PR c++/70018 (Possible issue around IPO and C++ comdats discovered as pure/const) · f13fe18b
      
      	PR ipa/70018
      	* cgraph.c (cgraph_node::get_availability): Add REF parameter.
      	(cgraph_node::function_symbol): Likewise.
      	(cgraph_node::function_or_virtual_thunk_symbol): Likewise.
      	* cgraph.h (symtab_node::get_availabbility): Add REF parameter.
      	(symtab_node::ultimate_alias_target): Add REF parameter.
      	(symtab_node::binds_to_current_def_p): Declare.
      	(symtab_node;:ultimate_alias_target_1): Add REF parameter.
      	(cgraph_node::function_symbol): Likewise.
      	(cgraph_node::function_or_virtual_thunk_symbol): Likewise.
      	(cgraph_node::get_availability): Likewise.
      	(cgraph_edge::binds_to_current_def_p): New inline function.
      	(varpool_node::get_availability): Add REF parameter.
      	(varpool_node::ultimate_alias_target): Likewise.
      	* symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
      	(symtab_node::binds_to_current_def_p): Likewise.
      	* varpool.c (varpool_node::get_availability): Likewise.
      
      From-SVN: r235063
      Jan Hubicka committed
    • Daily bump. · 06c3ddc0
      From-SVN: r235058
      GCC Administrator committed
  4. 15 Apr, 2016 4 commits