1. 23 May, 2015 11 commits
  2. 22 May, 2015 29 commits
    • Makefile.in (check_gcc_parallelize): Delete. · a95492ab
      gcc/
      	* Makefile.in (check_gcc_parallelize): Delete.
      	(lang_checks_parallelized): Update comment.
      gcc/c
      	* Make-lang.in (check_gcc_pallelize): Define.
      gcc/cp
      	* Make-lang.in (check_g++_parallelize): Update comment.
      gcc/fortran
      	* Make-lang.in (check_gfortran_parallelize): Update comment.
      
      From-SVN: r223597
      Jim Wilson committed
    • re PR rtl-optimization/66237 (FAIL: gcc.dg/tree-prof/pr34999.c compilation, … · d08093db
      re PR rtl-optimization/66237 (FAIL: gcc.dg/tree-prof/pr34999.c compilation,  -fprofile-use -D_PROFILE_USE (internal compiler error))
      
      PR rtl-optimization/66237
      
      * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
      location of an "as_a" cast.
      
      From-SVN: r223596
      Mikhail Maltsev committed
    • pa.md (non-canonical shift-add insns): Remove. · 3b0244cc
      	* config/pa/pa.md (non-canonical shift-add insns): Remove.
      	(peepholes with non-canonical RTL sources): Remove.
      	(peepholes for indexed stores of FP regs in integer modes): Match and
      	generate canonical RTL.
      
      From-SVN: r223592
      Jeff Law committed
    • re PR other/63387 (Optimize pairs of isnan() calls into a single isunordered()) · 257b01ba
      2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR tree-optimization/63387
      gcc/
      	* match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
      	((x ord x) & (y ord y) -> (x ord y),
      	(x ord x) & (x ord y) -> (x ord y)): New simplifications.
      	* fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
      	vectors like scalars.
      gcc/testsuite/
      	* gcc.dg/pr63387-2.c: New testcase.
      
      From-SVN: r223591
      Marc Glisse committed
    • convert.c (convert_to_integer, [...]): Include the types in the error message. · b8f75b8c
      2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
      
      gcc/
      	* convert.c (convert_to_integer, convert_to_vector): Include the
      	types in the error message.
      gcc/testsuite/
      	* gcc.dg/simd-1.c: Update to the new message.
      
      From-SVN: r223590
      Marc Glisse committed
    • libiberty.h (asprintf): Don't declare if HAVE_DECL_ASPRINTF is not defined. · f50f17e6
      include/:
      	* libiberty.h (asprintf): Don't declare if HAVE_DECL_ASPRINTF is
      	not defined.
      libiberty/:
      	* configure.ac: Add AC_GNU_SOURCE.
      	* Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
      	* configure, config.in: Rebuild.
      	* floatformat.c (_GNU_SOURCE): Don't define if already defined.
      
      From-SVN: r223589
      Yunlian Jiang committed
    • match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New simplifications. · af563d4b
      2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
      
      gcc/
      	* match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
      	simplifications.
      gcc/testsuite/
      	* gcc.dg/nand.c: New testcase.
      
      From-SVN: r223587
      Marc Glisse committed
    • pa.md (integer_indexed_store splitters): Use mem_shadd_operand. · ddc75e8b
      	* config/pa/pa.md (integer_indexed_store splitters): Use
      	mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
      	insns -- adjusting the constant 2nd operand accordingly.
      
      From-SVN: r223586
      Jeff Law committed
    • combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into (plus (ashift X log2) Y) if... · cc55969d
      	* combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
      	(plus (ashift X log2) Y) if it is a split point.
      
      	* gcc.target/hppa/shadd-3.c: New test.
      
      From-SVN: r223583
      Jeff Law committed
    • advsimd-intrinsics.exp: Set dg-do-what-default to compile only on ARM targets… · 83844a7d
      advsimd-intrinsics.exp: Set dg-do-what-default to compile only on ARM targets without arm_neon_hw...
      
      2015-05-22  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/testsuite/
      	* gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
      	Set dg-do-what-default to compile only on ARM targets without
      	arm_neon_hw execution support.  Remove redundant c-torture-execute
      	in loop over test cases.
      
      From-SVN: r223580
      Sandra Loosemore committed
    • pa.c (mem_shadd_or_shadd_rtx_p): New function factored out of… · 92d0b058
      pa.c (mem_shadd_or_shadd_rtx_p): New function factored out of hppa_legitimize_address to handle both forms of a...
      
      	* pa.c (mem_shadd_or_shadd_rtx_p): New function factored out
      	of hppa_legitimize_address to handle both forms of a multiply
      	by 2, 4 or 8.
      	(hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
      	Always generate the ASHIFT variant as the result is not directly
      	used in a MEM.  Update comments and refactor slightly to improve
      	readability.
      
      From-SVN: r223579
      Jeff Law committed
    • config.host (i[34567]-*-*, x86_64-*-*): Add t-crtfm instead of i386/t-crtfm to tmake_file. · 9b789cc1
      	* config.host (i[34567]-*-*, x86_64-*-*): Add t-crtfm instead of
      	i386/t-crtfm to tmake_file.
      	* config/i386/crtfastmath.c (set_fast_math_sse): New function.
      	(set_fast_math): Use set_fast_math_sse for SSE targets.
      	* config/i386/t-crtfm: Remove.
      
      From-SVN: r223578
      Uros Bizjak committed
    • [AArch64] PR target/65491: Classify V1TF vectors as AAPCS64 short vectors rather… · b6ec6215
      [AArch64] PR target/65491: Classify V1TF vectors as AAPCS64 short vectors rather than composite types
      
      	PR target/65491
      	* config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
      	aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
      	(aarch64_composite_type_p): Return false if given type and mode are
      	for a short vector.
      
      	PR target/65491
      	* gcc.target/aarch64/pr65491_1.c: New test.
      	* gcc.target/aarch64/aapcs64/type-def.h (vlf1_t): New typedef.
      	* gcc.target/aarch64/aapcs64/func-ret-1.c: Add test for vlf1_t.
      
      From-SVN: r223577
      Kyrylo Tkachov committed
    • re PR c++/65598 (Fix column location for 'explicit') · 320d13ec
      /cp
      2015-05-22  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/65598
      	* decl.c (grokdeclarator): Use the correct location in error
      	messages about 'explicit'.
      
      /testsuite
      2015-05-22  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/65598
      	* g++.dg/cpp0x/explicit9.C: New.
      	* g++.dg/cpp0x/explicit8.C: Check the locations too.
      
      From-SVN: r223576
      Paolo Carlini committed
    • tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern member. · effb52da
      2015-05-22  Richard Biener  <rguenther@suse.de>
      
      	* tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
      	member.
      	* tree-vect-loop.c (vect_analyze_loop_operations): Look at
      	patterns when determining whether SLP is pure.
      	(vect_is_slp_reduction): Remove check for pattern stmts.
      	(vect_is_simple_reduction_1): Remove dead code.
      	* tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
      	(vect_get_and_check_slp_defs): Pass in the stmt number.
      	Allow the first def in a reduction to be not a pattern stmt when
      	the rest of the stmts def are patterns.
      	(vect_build_slp_tree_1): Allow tcc_expression codes like
      	SAD_EXPR and DOT_PROD_EXPR.
      	(vect_build_slp_tree): Adjust.
      	(vect_analyze_slp): Refactor and move BB vect error message ...
      	(vect_slp_analyze_bb_1): ... here.
      
      From-SVN: r223574
      Richard Biener committed
    • [multiple changes] · 088c7e1b
      2015-05-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Constrain_Concurrent): If the context is a
      	type declaration, generate an Itype_Reference for the anonymous
      	subtype, to force elaboration at this point in gigi.
      
      2015-05-22  Gary Dismukes  <dismukes@adacore.com>
      
      	* layout.adb, einfo.ads, sem_ch12.adb, freeze.adb, sem_util.ads,
      	exp_ch4.adb, sem_ch6.adb: Minor reformatting and typo fixes.
      
      From-SVN: r223573
      Arnaud Charlet committed
    • tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P for CSWTCH temporary. · f8d851c6
      	* tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
      	for CSWTCH temporary.
      
      From-SVN: r223572
      Aldy Hernandez committed
    • fix to use rvalue where expected · e55ffe10
      From-SVN: r223571
      Nathan Sidwell committed
    • Minor reformatting. · c42e1b17
      From-SVN: r223570
      Arnaud Charlet committed
    • sem_res.adb (Resolve_Actuals): If the call is to an overridden operation... · e6b3f5ba
      2015-05-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_res.adb (Resolve_Actuals): If the call is to an overridden
      	operation, replace the names of the actuals in named associations
      	with the names of the actuals of the subprogram that is eventually
      	executed. The names of the formals and the defaults can differ
      	between the two operations when they are operations of a formal
      	derived type.
      
      From-SVN: r223569
      Ed Schonberg committed
    • [multiple changes] · d992a425
      2015-05-22  Bob Duff  <duff@adacore.com>
      
      	* a-convec.ads, a-convec.adb (Append): Check for fast path. Split
      	out slow path into separate procedure. Inline Append. Fast path
      	now avoids calling Insert.
      	(Finalize): Do the busy checking last, so the container gets emptied.
      	(Insert, Insert_Space): Remove redundancy.
      
      2015-05-22  Robert Dewar  <dewar@adacore.com>
      
      	* switch-c.adb (Scan_Front_End_Switches): Insist on -gnatc
      	for -gnatd.V.
      
      From-SVN: r223567
      Arnaud Charlet committed
    • gnatvsn.ads: Minor code reorg to remember more easily to update variables. · 84238eb0
      	* gnatvsn.ads: Minor code reorg to remember more easily to update
      	variables.
      
      From-SVN: r223566
      Arnaud Charlet committed
    • sem_ch10.adb (Analyze_With_Clause): In ASIS_Mode... · 598a56c0
      2015-05-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch10.adb (Analyze_With_Clause): In ASIS_Mode, a
      	limited_with clause on a predefined unit is not transformed into
      	a regular with_clause, to preserve the original tree structure.
      	* sinfo.ads (N_With_Clause): Add comment on handling of
      	Limited_With.
      	* sem_ch10.adb: Minor reformatting.
      
      2015-05-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch8.adb (Freeze_Profile): A limited view of a type in
      	the profile of a subprogram renaming does not require freezing,
      	because it is declared in a different unit.
      
      2015-05-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_aggr.adb (Get_Constraint_Association): If type (of ancestor
      	composite type) is private, go to full view. This was previously
      	done only in an instance context, but is happen whenever a chain
      	of private extensions includes one inherited discriminant.
      
      From-SVN: r223565
      Ed Schonberg committed
    • [multiple changes] · ee935273
      2015-05-22  Robert Dewar  <dewar@adacore.com>
      
      	* einfo.ads: Minor comment updates.
      	* exp_unst.adb: Move Subps table to spec Don't remove old entries
      	from table Add Last field to record last entry used.
      	* exp_unst.ads: Move Subps table here from body So that Cprint
      	can access saved values.
      
      2015-05-22  Bob Duff  <duff@adacore.com>
      
      	* a-cdlili.adb, a-cdlili.ads, a-cohama.adb, a-cohama.ads,
      	* a-cohase.adb, a-cohase.ads, a-convec.adb, a-convec.ads,
      	* a-coorma.adb, a-coorma.ads, a-coorse.adb, a-coorse.ads:
      	(Pseudo_Reference, Element_Access, Get_Element_Access): New
      	declarations added for use by performance improvements in exp_ch5.adb.
      	* snames.ads-tmpl: New names referenced by exp_ch5.adb.
      	* exp_ch5.adb: Speed up "for ... of" loops for predefined containers.
      	Instead of doing literally what the RM calls for, we do something
      	equivalent that avoids expensive operations inside the loop. If the
      	container package has appropriate Next, Pseudo_Reference,
      	Element_Access, Get_Element_Access declarations, we invoke the
      	optimization.
      	* snames.ads-tmpl: Note speed improvement.
      
      From-SVN: r223563
      Arnaud Charlet committed
    • einfo.ads (Is_Atomic_Or_VFA): Move to XEINFO INLINES section. · 5c0c1090
      2015-05-22  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* einfo.ads (Is_Atomic_Or_VFA): Move to XEINFO INLINES section.
      	* xeinfo.adb: Replace a-einfo.h with einfo.h throughout.
      	Add pattern to translate "or else" into "||".
      
      From-SVN: r223562
      Eric Botcazou committed
    • einfo.ads (Has_Volatile_Full_Access): Rename into... · 57abdadd
      2015-05-22  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* einfo.ads (Has_Volatile_Full_Access): Rename into...
      	(Is_Volatile_Full_Access): ...this.
      	(Set_Has_Volatile_Full_Access): Rename into...
      	(Set_Is_Volatile_Full_Access): ...this.
      	* einfo.adb (Has_Volatile_Full_Access): Rename into...
      	(Is_Volatile_Full_Access): ...this.
      	(Set_Has_Volatile_Full_Access): Rename into...
      	(Set_Is_Volatile_Full_Access): ...this.
      	(Is_Atomic_Or_VFA): Adjust to above renaming.
      	* errout.adb (Special_Msg_Delete): Likewise.
      	* exp_pakd.adb (Install_PAT): Likewise.
      	* freeze.adb (Freeze_Array_Type): Likewise.
      	* sem_ch8.adb (Analyze_Object_Renaming): Likewise.
      	* sem_ch13.adb (Inherit_Delayed_Rep_Aspects): Likewise.
      	(Inherit_Aspects_At_Freeze_Point): Likewise.
      	* sem_prag.adb (Set_Atomic_VFA): Likewise.
      	(Process_Atomic_Independent_Shared_Volatile): Likewise.
      	* sem_util.adb (Is_Atomic_Or_VFA_Object): Likewise.
      
      From-SVN: r223561
      Eric Botcazou committed
    • exp_ch5.adb, [...]: This is a general change that deals with the fact that most of the special... · f280dd8f
      2015-05-22  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch5.adb, layout.adb, einfo.adb, einfo.ads, sem_prag.adb,
      	freeze.adb, freeze.ads, sem_util.adb, sem_util.ads, exp_ch2.adb,
      	exp_ch4.adb, errout.adb, exp_aggr.adb, sem_ch13.adb: This is a general
      	change that deals with the fact that most of the special coding for
      	Atomic should also apply to the case of Volatile_Full_Access.
      	A new attribute Is_Atomic_Or_VFA is introduced, and many of the
      	references to Is_Atomic now use this new attribute.
      
      From-SVN: r223560
      Robert Dewar committed
    • exp_ch4.adb (Expand_N_Op_Eq): Introduce 'Machine for 'Result comparison. · 878e58c8
      2015-05-22  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch4.adb (Expand_N_Op_Eq): Introduce 'Machine for 'Result
      	comparison.
      
      From-SVN: r223559
      Robert Dewar committed
    • [ARM] Handle UNSPEC_VOLATILE in rtx costs and don't recurse inside the unspec · 64a40a7b
      	* config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
      	(arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
      	unknown unspecs.
      
      From-SVN: r223558
      Kyrylo Tkachov committed