1. 06 Dec, 2012 7 commits
  2. 05 Dec, 2012 33 commits
    • * g++.dg/pr55604.C: New test. · 2412b9b0
      From-SVN: r194231
      Steven Bosscher committed
    • re PR rtl-optimization/55604 (ICE while dumping in… · 85f9ce67
      re PR rtl-optimization/55604 (ICE while dumping in remove_some_program_points_and_update_live_ranges)
      
      	PR rtl-optimization/55604
      	* lra-lives.c (lra_create_live_ranges): If there are no referenced
      	pseudos left, do not compute live ranges.
      
      From-SVN: r194230
      Steven Bosscher committed
    • tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation. · aeb9f7cf
      
      	* doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation.
      	* doc/tm.texi: Regenerate.
      	* regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer
      	existing files global.c and local-alloc.c.
      	* regmove.c (copy_src_to_dest): Likewise.
      	* function.h (struct rtl_data): Likewise.
      	* ira-color.c (allocno_priority_compare_func): Likewise.
      	* regstat.c (regstat_compute_ri): Likewise.
      	* config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h,
      	config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h,
      	config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h,
      	config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h,
      	config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h,
      	config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise.
      
      From-SVN: r194229
      Steven Bosscher committed
    • re PR target/54160 (gcc should not define __OBJC2__ when lang is not set to ObjC… · 833fe7da
      re PR target/54160 (gcc should not define __OBJC2__ when lang is not set to ObjC (gcc 4.6 and later))
      
      	PR target/54160
      	* config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H).
      	* config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__
      	when in obj mode.
      	Include libcpp/internal.h.
      
      From-SVN: r194227
      Aldy Hernandez committed
    • re PR rtl-optimization/54739 (FAIL: gcc.dg/lower-subreg-1.c scan-rtl-dump subreg1 "Splitting reg") · b08c12cb
      PR rtl-optimization/54739
      	* config/microblaze/microblaze.md: (anddi3, iordi3, xordi3): Delete patterns.
      
      From-SVN: r194226
      Michael Eager committed
    • resolve.c (generate_component_assignments): Fix memleak. · d07e82f9
      2012-12-05  Tobias Burnus  <burnus@net-b.de>
      
              * resolve.c (generate_component_assignments): Fix memleak.
      
      From-SVN: r194225
      Tobias Burnus committed
    • [libsanitizer] merge from upstream r169371 · a0408454
      From-SVN: r194221
      Kostya Serebryany committed
    • [AARCH64] Add zip{1, 2}, uzp{1, 2}, trn{1, 2} support · cc4d934f
      for vector permute.
      
      gcc/
      
      	* config/aarch64/aarch64-simd-builtins.def: Add new builtins.
      	* config/aarch64/aarch64-simd.md (simd_type): Add uzp.
      	(aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): New.
      	* config/aarch64/aarch64.c (aarch64_evpc_trn): New.
      	(aarch64_evpc_uzp): Likewise.
      	(aarch64_evpc_zip): Likewise.
      	(aarch64_expand_vec_perm_const_1): Check for trn, zip, uzp patterns.
      	* config/aarch64/iterators.md (unspec): Add neccessary unspecs.
      	(PERMUTE): New.
      	(perm_insn): Likewise.
      	(perm_hilo): Likewise.
      
      From-SVN: r194219
      James Greenhalgh committed
    • [AARCH64] Implement Vector Permute Support. · 88b08073
      gcc/
      
      	* config/aarch64/aarch64-protos.h
      	(aarch64_split_combinev16qi): New.
      	(aarch64_expand_vec_perm): Likewise.
      	(aarch64_expand_vec_perm_const): Likewise.
      	* config/aarch64/aarch64-simd.md (vec_perm_const<mode>): New.
      	(vec_perm<mode>): Likewise.
      	(aarch64_tbl1<mode>): Likewise.
      	(aarch64_tbl2v16qi): Likewise.
      	(aarch64_combinev16qi): New.
      	* config/aarch64/aarch64.c
      	(aarch64_vectorize_vec_perm_const_ok): New.
      	(aarch64_split_combinev16qi): Likewise.
      	(MAX_VECT_LEN): Define.
      	(expand_vec_perm_d): New.
      	(aarch64_expand_vec_perm_1): Likewise.
      	(aarch64_expand_vec_perm): Likewise.
      	(aarch64_evpc_tbl): Likewise.
      	(aarch64_expand_vec_perm_const_1): Likewise.
      	(aarch64_expand_vec_perm_const): Likewise.
      	(aarch64_vectorize_vec_perm_const_ok): Likewise.
      	(TARGET_VECTORIZE_VEC_PERM_CONST_OK): Likewise.
      	* config/aarch64/iterators.md
      	(unspec): Add UNSPEC_TBL, UNSPEC_CONCAT.
      	(V_cmp_result): Add mapping for V2DF.
      
      gcc/testsuite/
      
      	* lib/target-supports.exp
      	(check_effective_target_vect_perm): Allow aarch64*-*-*.
      	(check_effective_target_vect_perm_byte): Likewise.
      	(check_effective_target_vect_perm_short): Likewise.
      	(check_effective_target_vect_char_mult): Likewise.
      	(check_effective_target_vect_extract_even_odd): Likewise.
      	(check_effective_target_vect_interleave): Likewise.
      
      From-SVN: r194218
      James Greenhalgh committed
    • [multiple changes] · 246ff1ae
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* par_sco.adb, sem_prag.adb, put_scos.adb, get_scos.adb: Minor
      	reformatting.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb: Code clean up.
      
      From-SVN: r194217
      Arnaud Charlet committed
    • Make-lang.in: Update dependencies. · f957d41e
      	* gcc-interface/Make-lang.in: Update dependencies.
      	* gcc-interface/lang.opt: New language AdaSCIL.
      	* gcc-interface/lang-specs.h: Add specs for adascil language.
      
      From-SVN: r194216
      Arnaud Charlet committed
    • [multiple changes] · 1c66c4f5
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* par_sco.adb (Traverse_Aspects): Ensure we always have
      	an entry in the sloc -> SCO map for invariants, since
      	Set_SCO_Pragma_Enabled is called with that sloc when checks
      	are enabled.
      
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_ch4.adb: Minor reformatting.
      
      2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* par-prag.adb: Checks and processing of pragma Assume are
      	carried out by Sem_Prag.
      	* sem_prag.adb (Analyze_Pragma): Check the legality of pragma
      	Assume.
      	* snames.ads-tmpl: Add new name Assume. Add a pragma identifier
      	for Assume.
      
      From-SVN: r194215
      Arnaud Charlet committed
    • aspects.ads, [...]: Add aspect Relative_Deadline. · c116143c
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* aspects.ads, aspects.adb: Add aspect Relative_Deadline.
      	* sem_ch13.adb (Analyze_Aspect_Specifications): Process aspect
      	Relative_Deadline, and introduce the corresponding pragma within
      	the task definition of the task type to which it applies.
      	(Check_Aspect_At_Freeze_Point): Expression in a Relative_Deadline
      	aspect is of type Time_Span.
      
      From-SVN: r194214
      Ed Schonberg committed
    • [multiple changes] · 5e0c742b
      2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_prag.adb (Check_Loop_Invariant_Variant_Placement): When pragma
      	Loop_[In]variant does not appear immediately within the statements
      	of a loop, it must appear in a chain of nested blocks.
      
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch13.adb: Minor reformatting.
      	 Remove redundant assertion.
      
      From-SVN: r194213
      Arnaud Charlet committed
    • Minor reformatting. · ce957867
      From-SVN: r194212
      Arnaud Charlet committed
    • [multiple changes] · 06ad40d3
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* par_sco.adb, scos.ads, put_scos.adb, put_scos.ads,
      	get_scos.adb: Generation of SCOs for aspects.
      
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_prag.adb (Check_Precondition_Postcondition): Remove
      	redundant call to Set_SCO_Pragma_Enabled (the pragma will be
      	rewritten into a pragma Check later on, and the call will be
      	made when processing the rewritten pragma).
      	(Analyze_Pragma, case Pragma_Check): Omit call to
      	Set_SCO_Pragma_Enabled if Split_PPC is set.
      
      2012-12-05  Olivier Hainque  <hainque@adacore.com>
      
      	* tracebak.c: Add partial support for Lynx178.
      
      2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_attr.adb (Analyze_Attribute): Improve
      	the error message related to loop assertions.
      
      2012-12-05  Gary Dismukes  <dismukes@adacore.com>
      
      	* atree.ads: Minor reformatting.
      
      From-SVN: r194211
      Arnaud Charlet committed
    • [multiple changes] · af31bd57
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* atree.ads, par-ch4.adb, sem_attr.adb, sem_ch13.adb: Minor
      	reformatting.
      
      2012-12-05  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* gnat_ugn.texi (Switches for gcc): Document -flto and reorder.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* par-ch5.adb (P_Condition): Handle properly Ada 2012
      	expressions that must be parenthesized before checking for
      	redundant parentheses when that check is enabled.
      
      From-SVN: r194210
      Arnaud Charlet committed
    • [multiple changes] · 7b55fea6
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* par-ch4.adb (P_Allocator): In Ada 2012 (AI05-0104)  an
      	uninitialized allocator cannot carry an explicit not null
      	indicator.
      	* sem_ch4.adb (Analyze_Allocator): Remove code that implements
      	the check for AI05-0104, the check is syntactic and performed
      	in the parser.
      
      2012-12-05  Geert Bosch  <bosch@adacore.com>
      
      	* sem_attr.adb (Analyze_Attribute): Use base type for floating
      	point attributes.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch13.adb (Analyze_Aspect_Specifications,
      	Ahalyze_Aspect_Default_Value): For a scalar type attach default
      	value to base type as well, because it is a type-specific aspect
      	even though it can be specified on a first subtype.
      
      From-SVN: r194209
      Arnaud Charlet committed
    • aarch64.c (aarch64_simd_mangle_map_entry): New typedef. · c6fc9e43
      gcc/
      
      2012-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
      
      	* config/aarch64/aarch64.c (aarch64_simd_mangle_map_entry): New
      	typedef.
      	(aarch64_simd_mangle_map): New table.
      	(aarch64_mangle_type): Locate and return the mangled name for
      	a given AdvSIMD vector type.
      
      gcc/testsuite/
      
      2012-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
      
      	* g++.dg/abi/mangle-neon-aarch64.C: New test.
      
      From-SVN: r194208
      Yufeng Zhang committed
    • [multiple changes] · 18a2ad5d
      2012-12-05  Yannick Moy  <moy@adacore.com>
      
      	* urealp.ads: Minor rewording.
      
      2012-12-05  Yannick Moy  <moy@adacore.com>
      
      	* aspects.ads (No_Duplicates_Allowed): Forbid use of duplicate
      	Contract_Cases aspects.
      	* sem_prag.adb (Analyze_Pragma/Pragma_Contract_Case): Rename
      	POST_CASE into CONTRACT_CASE in both grammar and code, to be
      	consistent with current language definition.  Issue a more precise
      	error message when the pragma duplicates another pragma or aspect.
      
      2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_attr.adb (Expand_N_Attribute_Reference): Add processing
      	for attribute Update.
      	(Expand_Update_Attribute): New routine.
      	* par-ch4.adb (P_Name): The sole expression of attribute Update
      	is an aggregate, parse it accordingly.
      	* sem_attr.adb (Analyze_Attribute): Verify the legality of
      	attribute Update.
      	(Eval_Attribute): Attribute Update does not
      	need evaluation because it is never static.
      	* snames.ads-tmpl: Add Name_Update to the list of special names
      	recognized by the compiler. Add an Attribute_Id for Update.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_util.adb (Remove_Side_Effects): For purposes of removing
      	side effects, qualified expressions do not receive a special
      	treatment, even though in Ada 2012 they are defined  as object
      	references.
      
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* par-ch3.adb: Minor reformatting.
      
      From-SVN: r194207
      Arnaud Charlet committed
    • exp_dist.adb (Build_From_Any_Call, [...]): For a used-defined subtype, always go… · baad9830
      exp_dist.adb (Build_From_Any_Call, [...]): For a used-defined subtype, always go to the first subtype of the base type.
      
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
      	Build_TypeCode_Call): For a used-defined subtype, always go to
      	the first subtype of the base type.
      
      From-SVN: r194206
      Thomas Quinot committed
    • [multiple changes] · 0f4be535
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_dist.adb: Minor reformatting.
      
      2012-12-05  Tristan Gingold  <gingold@adacore.com>
      
      	* Make-generated.in: Remove the VMS host specific part, as VMS
      	compilers aren't built anymore on VMS.
      
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* sem.adb, errout.ads, atree.adb, atree.ads (Check_Error_Detected):
      	Only return quietly if a serious error of configurable run time
      	violation has been found.
      
      2012-12-05  Yannick Moy  <moy@adacore.com>
      
      	* sem_res.adb (Resolve_Type_Conversion): In Alfa_Mode, do not apply
      	conversion checks.
      
      From-SVN: r194205
      Arnaud Charlet committed
    • [multiple changes] · a53c5613
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch5.adb (Expand_N_Assignment_Statement): Handle properly
      	the generation of discriminant checks when the left-hand side
      	has a type with hidden discriminants.
      	* sem_ch3.ads (Is_Visible_Component): Add defaulted parameter to
      	specify the node on which component visibility is being checked.
      	* sem_ch3.adb (Is_Visible_Component): Use new parameter to
      	determine whether the reference comes from a type conversion to
      	a full view of a private type with unknown discriminants.
      	* sem_ch4.adb (Analyze_Selected_Component): Call
      	Is_Visible_Component with added parameter.
      
      2012-12-05  Arnaud Charlet  <charlet@adacore.com>
      
      	* make.adb: Minor comment update.
      
      2012-12-05  Arnaud Charlet  <charlet@adacore.com>
      
      	* gnatlink.adb: Also use -x adascil in CodePeer mode when
      	calling gcc.
      	* exp_ch5.adb: Minor reformatting.
      
      2012-12-05  Bob Duff  <duff@adacore.com>
      
      	* exp_ch4.adb: Minor comment.
      
      2012-12-05  Bob Duff  <duff@adacore.com>
      
      	* par-ch4.adb: Set Paren_Count correctly for a parenthesized expression
      	containing a conditional expression or quantified expression.
      	* sprint.adb: Update comment.
      
      2012-12-05  Bob Duff  <duff@adacore.com>
      
      	* style.adb, scans.ads, styleg.adb: Update comments.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch8.adb (Find_Selected_Component): Handle properly an
      	expanded name whose prefix is the expanded name of an enclosing
      	entry,	that is to say a construct such as T.E.X, where T is an
      	enclosing concurrent type and E is an enclosing entry.
      
      From-SVN: r194204
      Arnaud Charlet committed
    • [multiple changes] · 5e29ae82
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* lib-writ.adb (Write_ALI): Output T lines.
      	* lib-writ.ads: Minor reformatting. Add documentation of T lines.
      	* opt.ads (Generate_Target_Dependent_Info): New flag.
      	* switch-c.adb (Scan_Switches): Recognize -gnatet switch
      	(target dependent info).
      	* ttypes.ads: Add four letter codes to declarations (for target
      	dependent info).
      	* usage.adb: Add line for -gnatet switch.
      
      2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_prag.adb (Expand_N_Pragma): Add a call to expand
      	pragma Loop_Variant.
      	(Expand_Pragma_Loop_Assertion): Removed.
      	(Expand_Pragma_Loop_Variant): New routine.
      	* par-prag.adb: Remove Pragma_Loop_Assertion and add two new
      	Pragma_Loop_Invariant and Pragma_Loop_Variant entries.
      	* sem_attr.adb (Analyze_Attribute): Update the code which
      	locates the enclosing pragma.
      	* sem_prag.adb (Analyze_Pragma): Remove the code which analyzes
      	pragma Loop_Assertion as the pragma is now obsolete. Add the
      	machinery to checks the semantics of pragmas Loop_Invariant
      	and Loop_Variant.
      	(Check_Loop_Invariant_Variant_Placement): New routine.
      	* snames.ads-tmpl: Remove name Loop_Assertion. Add new names
      	Loop_Invariant and Loop_Variant.  Rename Name_Decreasing
      	to Name_Decreases and Name_Increasing to Name_Increases.
      	Remove the pragma Id for Loop_Assertion and add two new Ids for
      	Loop_Invariant and Loop_Variant.
      
      From-SVN: r194203
      Arnaud Charlet committed
    • [multiple changes] · b9daa96e
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* gnatchop.adb, sem_attr.ads, sem_ch4.adb, sem_ch6.adb, exp_disp.adb,
      	atree.adb, sem_eval.adb: Minor reformatting.
      
      2012-12-05  Yannick Moy  <moy@adacore.com>
      
      	* uintp.adb (UI_Div_Rem): Correct algorithm D to remove potential
      	overflow.
      
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch4.adb (Expand_N_Op_Mod): Minor comment additions.
      	(Expand_N_Op_Rem): Ditto.
      
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* sem_attr.adb: Minor reformatting.
      
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* usage.adb: Update lines for -gnato? switch.
      
      From-SVN: r194202
      Arnaud Charlet committed
    • [multiple changes] · de6cad7c
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* par-ch6.adb (P_Return_Object_Declaration): Do not check for
      	legality of Aliased keyword.
      	* sem_ch6.adb (Analyze_Function_Return): The keyword aliased is
      	legal in an extended return statement only if the return type
      	is immutably limited.
      
      2012-12-05  Javier Miranda  <miranda@adacore.com>
      
      	* exp_disp.adb (Expand_Interface_Thunk): Simplify
      	management of controlling formals.  Required to avoid problems
      	with primitives of internally generated base types associated
      	with constrained tagged types.
      
      From-SVN: r194201
      Arnaud Charlet committed
    • aarch64.c (aarch64_mangle_type): New function. · ac2b960f
      gcc/
      
      2012-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
      
      	* config/aarch64/aarch64.c (aarch64_mangle_type): New function.
      	(TARGET_MANGLE_TYPE): Define.
      
      gcc/testsuite/
      
      2012-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
      
      	* g++.dg/abi/arm_va_list.C: Also test on aarch64*-*-*.
      
      From-SVN: r194200
      Yufeng Zhang committed
    • [multiple changes] · 570104df
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_eval.adb: Remove spurious warnings.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Build_Explicit_Dereference): Set properly
      	the type of the prefix prior to rewriting, because subsequent
      	legality checks examine the original node.
      
      2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* aspects.adb: Add Contract_Cases to the canonical aspects map.
      	* aspects.ads: Add aspect Contract_Cases in the various aspect
      	tables.
      	* par-prag.adb: The parser does not need to perform special
      	actions for pragma Contract_Cases.
      	* sem_ch6.adb (Expand_Contract_Cases): New routine.
      	(Process_Contract_Cases): Convert pragma Contract_Cases into pre-
      	and post- condition checks that verify the runtime state of all
      	case guards and their corresponding consequences.
      	* sem_ch13.adb (Analyze_Aspect_Specifications): Perform
      	various legality checks on aspect Contract_Cases. The aspect is
      	transformed into a pragma.
      	* sem_prag.adb: Add an entry in table Sig_Flags for pragma
      	Contract_Cases.
      	(Analyze_Pragma): Perform various legality
      	checks on pragma Contract_Cases.  The pragma is associated with
      	the contract of the related subprogram.
      	(Chain_CTC): Omit pragma
      	Contract_Cases because it does not introduce a unique case name
      	and does not follow the syntax of Contract_Case and Test_Case.
      	* snames.ads-tmpl: Add new name Name_Contract_Cases. Add a
      	Pragma_Id for Contract_Cases.
      
      2012-12-05  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch5.adb: Minor reformatting.
      
      2012-12-05  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_attr.ads: Add an entry for attribute Loop_Entry in the
      	Attribute_Impl_Def table.
      
      2012-12-05  Bob Duff  <duff@adacore.com>
      
      	* gnatchop.adb (Read_File): Avoid storage leak, and in most cases avoid
      	an extra copy of the string.
      
      From-SVN: r194199
      Arnaud Charlet committed
    • [multiple changes] · e8e581cd
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Preanalyze_Range): If the expression, which
      	denotes some domain of iteration, has a type with implicit
      	dereference, and does not have any iterable aspects, insert
      	dereference to obtain proper container type.
      
      2012-12-05  Bob Duff  <duff@adacore.com>
      
      	* par-ch8.adb (P_Use_Type_Clause): Fix the Sloc for "use all type ..."
      	to point to "use".
      
      2012-12-05  Arnaud Charlet  <charlet@adacore.com>
      
      	* make.adb (Compile): Always pass -x adascil in CodePeer mode.
      
      From-SVN: r194198
      Arnaud Charlet committed
    • [AARCH64] Add support for vectorizable standard math patterns. · 42fc9a7f
      gcc/
      
      	* config/aarch64/aarch64-builtins.c
      	(aarch64_builtin_vectorized_function): New.
      	* config/aarch64/aarch64-protos.h
      	(aarch64_builtin_vectorized_function): Declare.
      	* config/aarch64/aarch64-simd-builtins.def (frintz, frintp): Add.
      	(frintm, frinti, frintx, frinta, fcvtzs, fcvtzu): Likewise.
      	(fcvtas, fcvtau, fcvtps, fcvtpu, fcvtms, fcvtmu): Likewise.
      	* config/aarch64/aarch64-simd.md
      	(aarch64_frint_<frint_suffix><mode>): New.
      	(<frint_pattern><mode>2): Likewise.
      	(aarch64_fcvt<frint_suffix><su><mode>): Likewise.
      	(l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Likewise.
      	* config/aarch64/aarch64.c (TARGET_VECTORIZE_BUILTINS): Define.
      	(TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
      	* config/aarch64/aarch64.md
      	(btrunc<mode>2, ceil<mode>2, floor<mode>2)
      	(round<mode>2, rint<mode>2, nearbyint<mode>2): Consolidate as...
      	(<frint_pattern><mode>2): ...this.
      	(lceil<su_optab><mode><mode>2, lfloor<su_optab><mode><mode>2)
      	(lround<su_optab><mode><mode>2)
      	(lrint<su_optab><mode><mode>2): Consolidate as...
      	(l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): ... this.
      	* config/aarch64/iterators.md (fcvt_target): New.
      	(FCVT_TARGET): Likewise.
      	(FRINT): Likewise.
      	(FCVT): Likewise.
      	(frint_pattern): Likewise.
      	(frint_suffix): Likewise.
      	(fcvt_pattern): Likewise.
      
      gcc/testsuite/
      
      	* gcc.dg/vect/vect-rounding-btrunc.c: New test.
      	* gcc.dg/vect/vect-rounding-btruncf.c: Likewise.
      	* gcc.dg/vect/vect-rounding-ceil.c: Likewise.
      	* gcc.dg/vect/vect-rounding-ceilf.c: Likewise.
      	* gcc.dg/vect/vect-rounding-floor.c: Likewise.
      	* gcc.dg/vect/vect-rounding-floorf.c: Likewise.
      	* gcc.dg/vect/vect-rounding-lceil.c: Likewise.
      	* gcc.dg/vect/vect-rounding-lfloor.c: Likewise.
      	* gcc.dg/vect/vect-rounding-nearbyint.c: Likewise.
      	* gcc.dg/vect/vect-rounding-nearbyintf.c: Likewise.
      	* gcc.dg/vect/vect-rounding-round.c: Likewise.
      	* gcc.dg/vect/vect-rounding-roundf.c: Likewise.
      	* target-supports.exp
      	(check_effective_target_vect_call_btrunc): New.
      	(check_effective_target_vect_call_btruncf): Likewise.
      	(check_effective_target_vect_call_ceil): Likewise.
      	(check_effective_target_vect_call_ceilf): Likewise.
      	(check_effective_target_vect_call_floor): Likewise.
      	(check_effective_target_vect_call_floorf): Likewise.
      	(check_effective_target_vect_call_lceil): Likewise.
      	(check_effective_target_vect_call_lfloor): Likewise.
      	(check_effective_target_vect_call_nearbyint): Likewise.
      	(check_effective_target_vect_call_nearbyintf): Likewise.
      	(check_effective_target_vect_call_round): Likewise.
      	(check_effective_target_vect_call_roundf): Likewise.
      
      From-SVN: r194197
      James Greenhalgh committed
    • [multiple changes] · be4c5193
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* s-rident.ads, restrict.ads: Remove discrepancies between the
      	documentation on implementation-defined restrictions, and
      	the internal data structure used for warnings and errors on
      	implementation-defined restriction violations.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_prag.adb (Chain_PPC): Pre- and postcondition aspects
      	are legal on a subprogram body that acts as a spec.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch8.adb (Find_Selected_Component): If the selector name is
      	an overloadable entity but the name is not overloaded, generate
      	reference to it rather than delaying this until resolution.
      
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* checks.ads, checks.adb (Activate_Overflow_Check): No effect for
      	MOD/REM/unary +
      	* exp_ch4.adb (Expand_N_Op_Mod): Remove call to set Do_Overflow_Check.
      
      2012-12-05  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Find_Non_Universal_Interpretation): Use the
      	types of the right operand if the left operand is null.
      
      2012-12-05  Sergey Rybin  <rybin@adacore.com frybin>
      
      	* gnat_ugn.texi, vms_data.ads: document gnatpp -nn option.
      
      2012-12-05  Jose Ruiz  <ruiz@adacore.com>
      
      	* init.c (__gnat_install_handler): For the LEON VxWorks kernel
      	run-time library we need to install a trap handler directly in the
      	trap table (no support by the OS) for the software trap 0.
      
      From-SVN: r194196
      Arnaud Charlet committed
    • [multiple changes] · 03a2b9ed
      2012-12-05  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* gnat_rm.texi (Interfacing to C++): Document new restrictions.
      
      2012-12-05  Ben Brosgol  <brosgol@adacore.com>
      
      	* gnat_ugn.texi: Fix typo.
      
      2012-12-05  Robert Dewar  <dewar@adacore.com>
      
      	* gnatbind.adb: Minor reformatting.
      
      From-SVN: r194195
      Arnaud Charlet committed
    • [multiple changes] · 3565684a
      2012-12-05  Arnaud Charlet  <charlet@adacore.com>
      
      	* gnat_ugn.texi: Fix typo.
      
      2012-12-05  Tristan Gingold  <gingold@adacore.com>
      
      	* gnatbind.adb: Minor comment update.
      
      2012-12-05  Yannick Moy  <moy@adacore.com>
      
      	* gnat1drv.adb (Adjust_Global_Switches): Set flags to indicate that
      	CodePeer backend deals with divide and overflow checks.
      
      From-SVN: r194194
      Arnaud Charlet committed