1. 24 Jan, 2014 13 commits
    • [multiple changes] · 162c21d9
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* checks.adb (Expr_Known_Valid): Result of fpt operator never
      	considered valid.
      
      2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* back_end.adb: Minor fix in comment.
      
      2014-01-24  Javier Miranda  <miranda@adacore.com>
      
      	* sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
      	required to report the error in case of task types.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_attr.adb: Additional index checking.
      
      From-SVN: r207035
      Arnaud Charlet committed
    • [multiple changes] · 08cd7c2f
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
      	expressions in each component association, and for records note
      	the entity in each association choice, for subsequent resolution.
      	(Resolve_Attribute, case 'Update): Complete resolution of
      	expressions in each component association.
      
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
      	(this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
      	leading to wrong handling of SPARK_Mode for library units).
      
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
      	on generic instances (do not consider them to be internally
      	generated)
      
      2014-01-24  Doug Rupp  <rupp@adacore.com>
      
      	* s-osinte-android.ads (pthread_sigmask): Import sigprocmask
      	vice pthread_sigmask.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
      	not default.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* prj-ext.adb (Add): Do not output anything when Silent is True,
      	whatever the verbosity. When Source is From_External_Attribute,
      	set the corresponding environment variable if it is not already set.
      	* prj-ext.ads (Add): New Boolean parameter Silent, defaulted
      	to False
      	* prj-proc.adb (Process_Expression_For_Associative_Array):
      	For attribute External, call Prj.Ext.Add with Silent set to
      	True for the child environment, to avoid useless output in non
      	default verbosity.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
      	range given by a subtype indication, and force evaluation of
      	the bounds, as for a simple range.
      	* exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
      	of bounds of slice for various kinds of discrete ranges.
      	(Evaluate_Name, Evaluate_Subtype_From_Expr): use
      	Evaluate_Slice_Bounds.
      
      2014-01-24  Bob Duff  <duff@adacore.com>
      
      	* s-taskin.ads (Activator): Make this Atomic, because
      	Activation_Is_Complete reads it, and that can be called
      	from any task. Previously, this component was only
      	modified by the activator before activation, and by
      	Self after activation.
      	* a-taside.ads, a-taside.adb (Environment_Task,
      	Activation_Is_Complete): Implement these missing functions.
      
      From-SVN: r207034
      Arnaud Charlet committed
    • [multiple changes] · 7610fee8
      2014-01-24  Doug Rupp  <rupp@adacore.com>
      
      	* init.c: Add a handler section for Android.
      
      2014-01-24  Arnaud Charlet  <charlet@adacore.com>
      
      	* i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Operator_Check): If one operand is a
      	Raise_Expression, set its type to that of the other operand.
      	* sem_res.adb (Resolve_Raise_Expression): new procedure.
      	(Resolve_Actuals): For an actual that is a Raise_Expression,
      	set the type to that of the formal.
      	* sem_type.adb (Find_Unique_Type): If one of the operands is a
      	Raise_Expression, return type of the other operand.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
      	component of the record has a type with a default aspect, and
      	the corresponding aggregate component is initiaized with a box,
      	use the default value in the rewritten aggregate.
      
      2014-01-24  Tristan Gingold  <gingold@adacore.com>
      
      	* s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
      	s-interr-sigaction.adb,
      	s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
      	* exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
      	to the call to Install_Restricted_Handlers.
      
      2014-01-24  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-nmsc.adb (Check_File): Add protection when the source is
      	not fully initialized.
      
      From-SVN: r207033
      Arnaud Charlet committed
    • [multiple changes] · 4a854847
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Is_Post_State): In a postcondition, a selected
      	component that denotes an implicit dereference is a reference
      	to the post state of the subprogram.
      
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
      	for generated subprograms.
      	(Analyze_Subprogram_Specification): Ditto.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
      	attributes in package Builder of aggregate and aggregate library
      	projects.
      	* prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
      	Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
      	Remove parameters.  Change error message from "... externally
      	build library ..." to "... externally built project ...".
      	(Process_Naming_Scheme.Check): Do not do any check in aggregate
      	project, as attribute Library_Dir and Library_Name have already
      	been detected as forbidden.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* prj-env.adb (Find_Project): If cached project path is not in
      	project directory, look in current directory first and use cached
      	project path only if project is not found in project directory.
      
      From-SVN: r207032
      Arnaud Charlet committed
    • sem_util.adb, [...]: Correct false positive warnings. · a6ae518f
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* sem_util.adb, lib-xref.adb: Correct false positive warnings.
      
      From-SVN: r207031
      Robert Dewar committed
    • [multiple changes] · 0bd38d94
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* projects.texi: Document that aggregate projects are only
      	supported by gprbuild, but not by gnatmake.  Document that the
      	only attribute Switches in package Binder of aggregate projects
      	will be ignored if its index is not others.  Document that
      	attribute Global_Config_File is allowed in package Binder of
      	aggregate projects.
      
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb: Minor code reorganization.
      	* sem_util.adb: Minor fix of potential latent bug in Is_LHS.
      
      From-SVN: r207029
      Arnaud Charlet committed
    • [multiple changes] · 0567ae8d
      2014-01-24  Pascal Obry  <obry@adacore.com>
      
      	* prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
      	attribute definition.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
      	in the Queue the same source (same path, same multi-source index)
      	from the same project file, to avoid compiling several times
      	the same source.
      
      2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* einfo.ads (First_Rep_Item): Remove obsolete stuff.
      	(Has_Gigi_Rep_Item): Likewise.
      	* sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
      	Has_Gigi_Rep_Item for objects.
      	* gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
      	(prepend_one_attribute): ...this.
      	(prepend_one_attribute_pragma): New function extracted from...
      	(prepend_attributes): ...here.  Swap the parameters for consistency.
      	(gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
      	prepend_attributes.
      	<object>: Deal with a pragma Linker_Section on a constant
      	or variable.  <E_Function>: Deal with a pragma Linker_Section
      	on a subprogram.
      	(get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* opt.ads: Minor comment update.
      
      From-SVN: r207028
      Arnaud Charlet committed
    • [multiple changes] · 4437ea95
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb (Analyze_Input_Output): Add missing error check
      	for junk operand.
      	* sem_util.adb (Is_Refined_State): Add defense against junk
      	tree from error.
      
      2014-01-24  Pascal Obry  <obry@adacore.com>
      
      	* projects.texi: Removes Build_Slaves attribute documentation.
      
      From-SVN: r207027
      Arnaud Charlet committed
    • * gcc.dg/pr59846.c (fn1, fn2): Use ULL suffix. · 8e914068
      From-SVN: r207026
      Marek Polacek committed
    • Get stack adjustment from push operand in pushsf splitter · 16370fa7
      pushsf for -m64/-mx32 looks like
      
      (set (mem:SF (pre_modify:SI (reg/f:SI 7 sp)
      			    (plus:SI (reg/f:SI 7 sp)
      			    (const_int -8))))
           (reg:SF 22 xmm1 [orig:84 D.1790 ] [84]))
      
      Stack adjustment is in push operand and it isn't stack register mode size
      which may be 4 bytes for -mx32.  This patch gets stack adjustment from
      push operand if code of push isn't PRE_DEC.
      
      gcc/
      
      	PR target/59929
      	* config/i386/i386.md (pushsf splitter): Get stack adjustment
      	from push operand if code of push isn't PRE_DEC.
      
      gcc/testsuite/
      
      	PR target/59929
      	* gcc.target/i386/pr59929.c: New test.
      
      From-SVN: r207023
      H.J. Lu committed
    • re PR target/59909 (Quad memory bootstrap issues on little endian powerpc64 power8 systems) · b846c948
      [gcc]
      2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/59909
      	* doc/invoke.texi (RS/6000 and PowerPC Options): Document
      	-mquad-memory-atomic.  Update -mquad-memory documentation to say
      	it is only used for non-atomic loads/stores.
      
      	* config/rs6000/predicates.md (quad_int_reg_operand): Allow either
      	-mquad-memory or -mquad-memory-atomic switches.
      
      	* config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
      	-mquad-memory-atomic to ISA 2.07 support.
      
      	* config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
      	to separate support of normal quad word memory operations (ldq,
      	stq) from the atomic quad word memory operations.
      
      	* config/rs6000/rs6000.c (rs6000_option_override_internal): Add
      	support to separate non-atomic quad word operations from atomic
      	quad word operations.  Disable non-atomic quad word operations in
      	little endian mode so that we don't have to swap words after the
      	load and before the store.
      	(quad_load_store_p): Add comment about atomic quad word support.
      	(rs6000_opt_masks): Add -mquad-memory-atomic to the list of
      	options printed with -mdebug=reg.
      
      	* config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
      	-mquad-memory-atomic as the test for whether we have quad word
      	atomic instructions.
      	(TARGET_SYNC_HI_QI): If either -mquad-memory-atomic,
      	-mquad-memory, or -mp8-vector are used, allow byte/half-word
      	atomic operations.
      
      	* config/rs6000/sync.md (load_lockedti): Insure that the address
      	is a proper indexed or indirect address for the lqarx instruction.
      	On little endian systems, swap the hi/lo registers after the lqarx
      	instruction.
      	(load_lockedpti): Use indexed_or_indirect_operand predicate to
      	insure the address is valid for the lqarx instruction.
      	(store_conditionalti): Insure that the address is a proper indexed
      	or indirect address for the stqcrx. instruction.  On little endian
      	systems, swap the hi/lo registers before doing the stqcrx.
      	instruction.
      	(store_conditionalpti): Use indexed_or_indirect_operand predicate to
      	insure the address is valid for the stqcrx. instruction.
      
      	* gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
      	Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
      	type of quad memory support is available.
      
      [gcc/testsuite]
      2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/59909
      	* gcc.target/powerpc/quad-atomic.c: New file to test power8 quad
      	word atomic functions at runtime.
      
      From-SVN: r207020
      Michael Meissner committed
    • compiler: Convert named types before flattening. · 9eb3a1d3
      From-SVN: r207018
      Ian Lance Taylor committed
    • Daily bump. · f2c20518
      From-SVN: r207015
      GCC Administrator committed
  2. 23 Jan, 2014 27 commits
    • acinclude.m4 (GLIBCXX_CHECK_TMPNAM): New check for tmpnam function. · 7370b9df
      2014-01-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
      	    Steve Ellcey  <sellcey@mips.com>
      
      	* acinclude.m4 (GLIBCXX_CHECK_TMPNAM): New check for tmpnam
      	function.
      	* configure.ac: Use GLIBCXX_CHECK_TMPNAM.
      	* (configure, config.h.in): Regenerate.
      	* include/c_global/cstdio: Guard ::tmpnam with _GLIBCXX_USE_TMPNAM
      
      Co-Authored-By: Steve Ellcey <sellcey@mips.com>
      
      From-SVN: r207009
      Bernhard Reutner-Fischer committed
    • re PR c/59846 (Imprecise column number for -Wtype-limits) · 393e8e8b
      	PR c/59846
      c-family/
      	* c-common.c (shorten_compare): Add location_t parameter.
      	* c-common.h (shorten_binary_op): Adjust declaration.
      cp/
      	* typeck.c (cp_build_binary_op): Pass location to shorten_compare.
      c/
      	* c-typeck.c (parser_build_binary_op): Use location instead of
      	input_location.
      	(build_binary_op): Pass location to shorten_compare.
      testsuite/
      	* gcc.dg/pr59846.c: New test.
      
      From-SVN: r207008
      Marek Polacek committed
    • re PR rtl-optimization/59915 (LRA ICE - Repeated looping over subreg reloads… · 6e23f296
      re PR rtl-optimization/59915 (LRA ICE - Repeated looping over subreg reloads (gcc.c-torture/compile/simd-3.c))
      
      2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR regression/59915
      	* lra-constraints.c (simplify_operand_subreg): Spill pseudo if
      	there is a danger of looping.
      
      From-SVN: r207007
      Vladimir Makarov committed
    • re PR c/58346 (ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting… · f04dda30
      re PR c/58346 (ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk, 4.8, 4.7, and 4.6))
      
      	PR c/58346
      c-family/
      	* c-common.c (pointer_to_zero_sized_aggr_p): New function.
      	* c-common.h: Declare it.
      cp/
      	* typeck.c (pointer_diff): Give an error on arithmetic on pointer to
      	an empty aggregate.
      c/
      	* c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
      	an empty aggregate.
      testsuite/
      	* c-c++-common/pr58346-1.c: New test.
      	* c-c++-common/pr58346-2.c: New test.
      	* c-c++-common/pr58346-3.c: New test.
      
      From-SVN: r207004
      Marek Polacek committed
    • re PR c/59871 (No unused value warning for comma expression) · 789eadcd
      	PR c/59871
      c/
      	* c-typeck.c (build_compound_expr): Warn even for right-hand operand
      	of a comma expression.
      	(emit_side_effect_warnings): Likewise.
      libdecnumber/
      	* decNumberLocal.h (UBFROMUS, UBFROMUI): Remove last argument.
      testsuite/
      	* gcc.dg/20020220-2.c: Adjust dg-warning message.
      	* gcc.dg/pr59871.c: New test.
      
      From-SVN: r207002
      Marek Polacek committed
    • re PR c++/55189 (enable -Wreturn-type by default) · 20f18c3c
      	PR c++/55189
      	* cp-tree.h (struct language_function): Add infinite_loop and
      	infinite_loops.
      	(current_function_infinite_loop): New.
      	* semantics.c (begin_maybe_infinite_loop, end_maybe_infinite_loop)
      	(break_maybe_infinite_loop): New.
      	(finish_while_stmt_cond, finish_while_stmt, begin_do_stmt)
      	(finish_do_stmt, finish_for_cond, finish_for_stmt)
      	(begin_range_for_stmt): Use them.
      	* decl.c (finish_function): Don't warn about missing return
      	if current_function_infinite_loop.
      	* pt.c (instantiate_decl): Copy current_function_infinite_loop.
      	* parser.c (cp_parser_jump_statement): Call break_maybe_infinite_loop.
      
      From-SVN: r207001
      Jason Merrill committed
    • call.c (build_op_delete_call): Use make_tree_vector and release_tree_vector. · 928d850f
      	* call.c (build_op_delete_call): Use make_tree_vector and
      	release_tree_vector.
      
      From-SVN: r207000
      Jason Merrill committed
    • re PR libstdc++/59872 (Cannot move std::map with move-only mapped_type) · 6a5839c8
      	PR libstdc++/59872
      	* include/bits/stl_map.h (map::operator=(map&&)): Fix comment.
      	* include/bits/stl_multimap.h (multimap::operator=(multimap&&)):
      	Likewise.
      	* include/bits/stl_multiset.h (multiset::operator=(multiset&&)):
      	Likewise.
      	* include/bits/stl_set.h (set::operator=(set&&)): Likewise.
      	* include/bits/stl_tree.h (_Rb_tree::_M_move_data): New overloaded
      	functions to perform moving or copying of elements from rvalue tree.
      	(_Rb_tree::_Rb_tree(_Rb_tree&&)): Use _M_move_data.
      	(_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Likewise.
      	* testsuite/23_containers/map/59872.cc: New.
      	* testsuite/23_containers/map/56613.cc: Remove duplicate include.
      
      From-SVN: r206994
      Jonathan Wakely committed
    • [multiple changes] · ea0f1fc8
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
      	setting.
      
      2014-01-23  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Is_Potentially_Unevaluated): Predicate only
      	applies to expressions that come from source.
      	* sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
      	message.
      	(Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
      	rule regarding potentially unevaluated expressions, to prefix
      	of attribute.
      
      From-SVN: r206993
      Arnaud Charlet committed
    • [multiple changes] · 19992053
      2014-01-23  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_util.adb (Make_Invqriant_Call): If type of expression is
      	a private extension, get invariant from base type.
      
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* sem_util.adb, sem_attr.adb: Minor reformatting.
      
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
      	(Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
      	* sem.adb (Semantics): Remove save/restore of
      	SPARK_Mode[_Pragma]. Not needed since already done in
      	Save/Restore_Opt_Config_Switches.
      
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
      	freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
      	Linker_Section enhancements.
      
      From-SVN: r206992
      Arnaud Charlet committed
    • re PR c/59825 (Many cilkplus test failures) · 40f14e9f
      Fix for PR c/59825.
      2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      
              PR c/59825
              * c-array-notation.c (expand_array_notation_exprs): Rewrote this
              function to use walk_tree and moved a lot of its functionality to
              expand_array_notations.
              (expand_array_notations): New function.
      
      From-SVN: r206991
      Balaji V. Iyer committed
    • [multiple changes] · c733429f
      2014-01-23  Tristan Gingold  <gingold@adacore.com>
      
      	* gnat_rm.texi: Minor editing.
      
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
      	with'ed internal units.
      	* sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
      
      2014-01-23  Javier Miranda  <miranda@adacore.com>
      
      	* lib-xref.adb (Generate_Reference): As part of processing the
      	"end-of-spec" reference generate an extra reference to the first
      	private entity of the package.
      	* xr_tabls.adb (Add_Reference): No action needed for the extra
      	'E' reference associated; similar to the processing of the
      	'e' reference.
      
      2014-01-23  Bob Duff  <duff@adacore.com>
      
      	* gnat_ugn.texi: Change "--&pp off" to "--!pp off".
      
      2014-01-23  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
      	predicate to implement rule given in 6.1.1 (20/3).
      	* sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
      	'Old in a postcondition, if it is potentially unevaluated and
      	it is not an entity name.
      
      From-SVN: r206990
      Arnaud Charlet committed
    • Minor editing. · 7e97e174
      From-SVN: r206989
      Arnaud Charlet committed
    • gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp. · 8bdc02c2
      2014-01-23  Bob Duff  <duff@adacore.com>
      
      	* gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
      
      From-SVN: r206988
      Bob Duff committed
    • [multiple changes] · e949ee22
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* gnatlink.adb (Gnatlink): Fix problem of generating bad name
      	msg on VMS.
      
      2014-01-23  Bob Duff  <duff@adacore.com>
      
      	* g-dynhta.ads: Minor comment fix.
      
      2014-01-23  Yannick Moy  <moy@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
      	from spec on body only when not already inherited on spec. Set
      	SPARK_Mode from context on body without previous spec.	*
      	* sem_prag.adb (Analyze_Pragma): Check placement of pragma on
      	library-level entities.  Correct retrieval of entity from
      	declaration, for cases where the declaration is not a unit.
      	* sem_ch12.adb (Instantiate_Object): Avoid
      	calling Is_Volatile_Object on an empty node.
      
      From-SVN: r206987
      Arnaud Charlet committed
    • gnatlink.adb (Gnatlink): Check for suspicious executable file names on windows. · 545d3e65
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* gnatlink.adb (Gnatlink): Check for suspicious executable file
      	names on windows.
      
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
      	* sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
      	style errors in instances.
      	* g-dynhta.ads (Static_HTable): Comment updates.
      
      From-SVN: r206986
      Robert Dewar committed
    • prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt to find a… · cc55f9be
      prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt to find a configuration project file when...
      
      2014-01-23  Vincent Celier  <celier@adacore.com>
      
      	* prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
      	to find a configuration project file when Config_File_Name is
      	No_Configuration_File.
      	* prj-conf.ads (No_Configuration_File): New constant String.
      	* prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
      	with Config_File_Name set to No_Configuration_File, so that
      	no existing configuration project file will be used, and the
      	configuration project will be only created in memory when
      	Add_Default_GNAT_Naming_Scheme is called.
      	* projects.texi: Minor reformatting.
      
      From-SVN: r206985
      Vincent Celier committed
    • prj-conf.adb (Get_Or_Create_Configuration_File): Never parse a config project… · 225a0c5c
      prj-conf.adb (Get_Or_Create_Configuration_File): Never parse a config project file if On_Load_Config is not null.
      
      2014-01-23  Vincent Celier  <celier@adacore.com>
      
      	* prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
      	a config project file if On_Load_Config is not null.
      	* prj-pars.adb: Minor comment changes.
      
      From-SVN: r206984
      Vincent Celier committed
    • Minor reformatting. · bdd6d80a
      From-SVN: r206983
      Arnaud Charlet committed
    • rs6000.c (rs6000_option_override_internal): Don't force flag_ira_loop_pressure… · 0a4f04e5
      rs6000.c (rs6000_option_override_internal): Don't force flag_ira_loop_pressure if set via command line.
      
      	* config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
      	force flag_ira_loop_pressure if set via command line.
      
      From-SVN: r206982
      Pat Haugen committed
    • lib-xref.adb (Output_References): Output progenitors of synchronized tagged… · 89253742
      lib-xref.adb (Output_References): Output progenitors of synchronized tagged types, for source navigation.
      
      2014-01-23  Ed Schonberg  <schonberg@adacore.com>
      
      	* lib-xref.adb (Output_References): Output progenitors of
      	synchronized tagged types, for source navigation.
      
      From-SVN: r206981
      Ed Schonberg committed
    • [multiple changes] · 53c53f6d
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
      	expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
      	sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
      
      2014-01-23  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-conf.adb (Get_Or_Create_Configuration_File): call
      	On_Load_Config later.
      
      2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_ch3.adb (Analyze_Declarations): Do not
      	generate the spec of the late primitive in ASIS mode. Add two
      	comments to explain the special cases when the expansion is
      	not performed.
      
      2014-01-23  Robert Dewar  <dewar@adacore.com>
      
      	* sem_util.adb (Note_Possible_Modification): Fix error of
      	misbehaving for implicit dereference cases in -gnatc mode.
      
      2014-01-23  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-pars.adb: Minor reformatting.
      
      From-SVN: r206980
      Arnaud Charlet committed
    • re PR c++/58980 (ICE with invalid enum declaration) · ea15e254
      /cp
      2014-01-23  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58980
      	* parser.c (cp_parser_enum_specifier): Handle TYPENAME_TYPE as
      	nested_name_specifier.
      
      /testsuite
      2014-01-23  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58980
      	* g++.dg/parse/enum11.C: New.
      
      From-SVN: r206979
      Paolo Carlini committed
    • [PATCH][AArch64] Vector shift by 64 fix · f9a4c9a6
      gcc/
      
      	* config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
      	(ashr_simd): New builtin handling DI mode.
      	* config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
      	(aarch64_sshr_simddi): New match pattern.
      	* config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
      	(vshrd_n_s64): Likewise.
      	* config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
      
      gcc/testsuite/
      
      	* gcc.target/aarch64/sshr64_1.c: New testcase.
      
      From-SVN: r206978
      Alex Velenko committed
    • msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu. · 949ad971
      	* config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
      	(LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
      	favour of mcu specific scripts.
      	* config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
      	430x multilibs.
      
      From-SVN: r206977
      Nick Clifton committed
    • Added support for Cilk Plus SIMD-enabled functions for C++. · 74558dd9
      gcc/c/c-parser.c
      2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      
              * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
              attribute an attribute without value.
      
      gcc/cp/ChangeLog
      2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      
              * parser.c (cp_parser_direct_declarator): When Cilk Plus is enabled
              see if there is an attribute after function decl.  If so, then
              parse them now.
              (cp_parser_late_return_type_opt): Handle parsing of Cilk Plus SIMD
              enabled function late parsing.
              (cp_parser_gnu_attribute_list): Parse all the tokens for the vector
              attribute for a SIMD-enabled function.
              (cp_parser_omp_all_clauses): Skip parsing to the end of pragma when
              the function is used by SIMD-enabled function (indicated by NULL
              pragma token).   Added 3 new clauses: PRAGMA_CILK_CLAUSE_MASK,
              PRAGMA_CILK_CLAUSE_NOMASK and PRAGMA_CILK_CLAUSE_VECTORLENGTH
              (cp_parser_cilk_simd_vectorlength): Modified this function to handle
              vectorlength clause in SIMD-enabled function and #pragma SIMD's
              vectorlength clause.  Added a new bool parameter to differentiate
              between the two.
              (cp_parser_cilk_simd_fn_vector_attrs): New function.
              (is_cilkplus_vector_p): Likewise.
              (cp_parser_late_parsing_elem_fn_info): Likewise.
              (cp_parser_omp_clause_name): Added a check for "mask", "nomask"
              and "vectorlength" clauses when Cilk Plus is enabled.
              (cp_parser_omp_clause_linear): Added a new parameter of type bool
              and emit a sorry message when step size is a parameter.
              * parser.h (cp_parser::cilk_simd_fn_info): New field.
              * decl.c (grokfndecl): Added flag_enable_cilkplus along with
              flag_openmp.
              * pt.c (apply_late_template_attributes): Likewise.
      
      testsuite/ChangeLog
      2014-01-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      
              * g++.dg/cilk-plus/cilk-plus.exp: Called the C/C++ common tests for
              SIMD enabled function.
              * g++.dg/cilk-plus/ef_test.C: New test.
              * c-c++-common/cilk-plus/ef_error3.c: Made certain messages C specific
              and added C++ ones.
              * c-c++-common/cilk-plus/vlength_errors.c: Added new dg-error tags
              to differenciate C error messages from C++ ones.
      
      From-SVN: r206975
      Balaji V. Iyer committed
    • [AArch64_BE 4/4] Big-Endian lane numbering fix · d5ecead9
      2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
      	    Alex Velenko  <Alex.Velenko@arm.com>
      
      	* config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
      	(vaddv_s16): Likewise.
      	(vaddv_s32): Likewise.
      	(vaddv_u8): Likewise.
      	(vaddv_u16): Likewise.
      	(vaddv_u32): Likewise.
      	(vaddvq_s8): Likewise.
      	(vaddvq_s16): Likewise.
      	(vaddvq_s32): Likewise.
      	(vaddvq_s64): Likewise.
      	(vaddvq_u8): Likewise.
      	(vaddvq_u16): Likewise.
      	(vaddvq_u32): Likewise.
      	(vaddvq_u64): Likewise.
      	(vaddv_f32): Likewise.
      	(vaddvq_f32): Likewise.
      	(vaddvq_f64): Likewise.
      	(vmaxv_f32): Likewise.
      	(vmaxv_s8): Likewise.
      	(vmaxv_s16): Likewise.
      	(vmaxv_s32): Likewise.
      	(vmaxv_u8): Likewise.
      	(vmaxv_u16): Likewise.
      	(vmaxv_u32): Likewise.
      	(vmaxvq_f32): Likewise.
      	(vmaxvq_f64): Likewise.
      	(vmaxvq_s8): Likewise.
      	(vmaxvq_s16): Likewise.
      	(vmaxvq_s32): Likewise.
      	(vmaxvq_u8): Likewise.
      	(vmaxvq_u16): Likewise.
      	(vmaxvq_u32): Likewise.
      	(vmaxnmv_f32): Likewise.
      	(vmaxnmvq_f32): Likewise.
      	(vmaxnmvq_f64): Likewise.
      	(vminv_f32): Likewise.
      	(vminv_s8): Likewise.
      	(vminv_s16): Likewise.
      	(vminv_s32): Likewise.
      	(vminv_u8): Likewise.
      	(vminv_u16): Likewise.
      	(vminv_u32): Likewise.
      	(vminvq_f32): Likewise.
      	(vminvq_f64): Likewise.
      	(vminvq_s8): Likewise.
      	(vminvq_s16): Likewise.
      	(vminvq_s32): Likewise.
      	(vminvq_u8): Likewise.
      	(vminvq_u16): Likewise.
      	(vminvq_u32): Likewise.
      	(vminnmv_f32): Likewise.
      	(vminnmvq_f32): Likewise.
      	(vminnmvq_f64): Likewise.
      
      Co-Authored-By: Alex Velenko <Alex.Velenko@arm.com>
      
      From-SVN: r206973
      James Greenhalgh committed