1. 16 Jun, 2015 21 commits
    • re PR c++/58063 (default arguments evaluated twice per call) · 2ed4c029
      	PR c++/58063
      	* tree.c (bot_manip): Remap SAVE_EXPR.
      
      From-SVN: r224533
      Jason Merrill committed
    • PR jit/66539: Add parentheses as needed to gcc_jit_object_get_debug_string · bd93aa1a
      gcc/jit/ChangeLog:
      	PR jit/66539
      	* jit-recording.c: Within namespace gcc::jit::recording::
      	(rvalue::get_debug_string_parens): New function.
      	(binary_op::make_debug_string): Update to mimic C precedence
      	rules.
      	(binary_op_precedence): New array.
      	(binary_op::get_precedence): New function.
      	(comparison::make_debug_string): Update to mimic C precedence
      	rules.
      	(comparison_precedence): New array.
      	(comparison::get_precedence): New function.
      	(cast::make_debug_string): Update to mimic C precedence rules.
      	(call::make_debug_string): Likewise.
      	(call_through_ptr::make_debug_string): Likewise.
      	(array_access::make_debug_string): Likewise.
      	(access_field_of_lvalue::make_debug_string): Likewise.
      	(access_field_rvalue::make_debug_string): Likewise.
      	(dereference_field_rvalue::make_debug_string): Likewise.
      	(dereference_rvalue::make_debug_string): Likewise.
      	(get_address_of_lvalue::make_debug_string): Likewise.
      	* jit-recording.h: Within namespace gcc::jit::recording::
      	(precedence): New enum.
      	(rvalue::rvalue): Initialize field "m_parenthesized_string".
      	(rvalue::get_debug_string_parens): New method.
      	(rvalue::get_precedence): New pure virtual function.
      	(rvalue::m_parenthesized_string): New field.
      	(param::get_precedence): New function.
      	(global::get_precedence): New function.
      	(memento_of_new_rvalue_from_const::get_precedence): New function.
      	(memento_of_new_string_literal::get_precedence): New function.
      	(unary_op::get_precedence): New function.
      	(binary_op::get_precedence): New function.
      	(comparison::get_precedence): New function.
      	(cast::get_precedence): New function.
      	(call::get_precedence): New function.
      	(call_through_ptr::get_precedence): New function.
      	(array_access::get_precedence): New function.
      	(access_field_of_lvalue::get_precedence): New function.
      	(access_field_rvalue::get_precedence): New function.
      	(dereference_field_rvalue::get_precedence): New function.
      	(dereference_rvalue::get_precedence): New function.
      	(get_address_of_lvalue::get_precedence): New function.
      	(local::get_precedence): New function.
      
      gcc/testsuite/ChangeLog:
      	PR jit/66539
      	* jit.dg/all-non-failing-tests.h: Add test-debug-strings.c.
      	* jit.dg/test-debug-strings.c: New test case.
      	* jit.dg/test-quadratic.c (make_calc_discriminant): Verify that
      	the discriminant has a sane debug string.
      
      From-SVN: r224531
      David Malcolm committed
    • re PR libstdc++/65393 (std::thread shared_ptr inefficiency) · 0dc3cba1
      	PR libstdc++/65393
      	* src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
      	copies with moves.
      
      From-SVN: r224530
      Jonathan Wakely committed
    • * ChangeLog: Fixup PR number. · b2c15a77
      From-SVN: r224529
      Uros Bizjak committed
    • * ChangeLog: Added missing ChangeLog entries. · 61b72061
      From-SVN: r224528
      Uros Bizjak committed
    • re PR target/56766 (Fails to combine (vec_select (vec_concat ...)) to (vec_merge ...)) · 5fd816e6
      	PR target/56776
      	* config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
      	(*avx_addsubv4df3_1s): Ditto.
      	(*sse3_addsubv2df3_1): Ditto.
      	(*sse3_addsubv2df3_1s): Ditto.
      	(*avx_addsubv8sf3_1): Ditto.
      	(*avx_addsubv8sf3_1s): Ditto.
      	(*sse3_addsubv4sf3_1): Ditto.
      	(*sse3_addsubv4sf3_1s): Ditto.
      
      testsuite/ChangeLog:
      
      	PR target/56776
      	* gcc.target/i386/pr56776-1.c: New test.
      	* gcc.target/i386/pr56776-2.c: Ditto.
      
      From-SVN: r224527
      Uros Bizjak committed
    • loongson-shift-count-truncated-1.c: Skip on mips*-mti-linux* and mips*-img-linux* targets. · 39e99359
      2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
      
      	* gcc.target/mips/loongson-shift-count-truncated-1.c:
      	Skip on mips*-mti-linux* and mips*-img-linux* targets.
      	* gcc.target/mips/loongson-simd.c: Ditto.
      
      From-SVN: r224526
      Steve Ellcey committed
    • mti-linux.h (MIPS_SYSVERSION_SPEC): New. · c04f999f
      2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
      
      	* config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
      	(SYSROOT_SUFFIX_SPEC): Update.
      	(SYSROOT_HEADERS_SUFFIX_SPEC): New.
      	(STARTFILE_PREFIX_SPEC): Update.
      	* config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
      	(MULTILIB_REQUIRED): New.
      	(MULTILIB_OSDIRNAMES): New.
      	* config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
      	(MULTILIB_REQUIRED): New.
      	(MULTILIB_OSDIRNAMES): New.
      
      From-SVN: r224525
      Steve Ellcey committed
    • re PR c++/66387 (ICE in make_decl_rtl with lambda) · 63d02f05
      	PR c++/66387
      	* pt.c (tsubst_copy) [VAR_DECL]: Use process_outer_var_ref.
      
      From-SVN: r224521
      Jason Merrill committed
    • aarch64-arches.def: Add "armv8.1-a". · ff09c88d
      2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
      
      	* config/aarch64/aarch64-arches.def: Add "armv8.1-a".
      	* config/aarch64/aarch64-options-extensions.def: Update "fP",
      	"simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
      	* gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
      	(AARCH64_FL_PAN): New.
      	(AARCH64_FL_LOR): New.
      	(AARCH64_FL_RDMA): New.
      	(AARCH64_FL_FOR_ARCH8_1): New.
      	* doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
      	-march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
      
      From-SVN: r224519
      Matthew Wahab committed
    • Fallout for new memory statistics infrastructure. · ca30789c
              * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
      	* hash-table.c (void dump_hash_table_loc_statistics): Add missing
      	guard.
      
      From-SVN: r224518
      Martin Liska committed
    • * ChangeLog: Remove duplicate entry. · 022850c0
      From-SVN: r224515
      Uros Bizjak committed
    • tree-vect-stmts.c (vectorizable_store): Adjust. · aed93b23
      2015-06-16  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-stmts.c (vectorizable_store): Adjust.
      	(vectorizable_load): Likewise.
      	* tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
      	Simplify.
      	(vect_create_data_ref_ptr): Likewise.
      	(bump_vector_ptr): Adjust.
      
      	* gcc.target/i386/recip-vec-sqrtf-avx.c: Disable unrolling.
      
      From-SVN: r224514
      Richard Biener committed
    • [Patch Testsuite obvious] gcc.target/arm/pr65647.c should not · 283f1963
       unconditionally add -mfloat-abi=soft
      
      gcc/testsuite/
      
      	* gcc.target/arm/pr65647.c: Do not override -mfloat-abi directives
      	passed by the testsuite driver.
      
      From-SVN: r224512
      James Greenhalgh committed
    • tree-vect-stmts.c (vectorizable_load): Properly start loads with the first… · ab313a8c
      tree-vect-stmts.c (vectorizable_load): Properly start loads with the first element if this is grouped loads.
      
      2015-06-16  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-stmts.c (vectorizable_load): Properly start loads
      	with the first element if this is grouped loads.
      
      	* gcc.dg/vect/slp-perm-11.c: New testcase.
      
      From-SVN: r224511
      Richard Biener committed
    • ARM][obvious] Fix gcc.target/arm/thumb-ifcvt.c · c764591d
      2015-06-16  Christophe Lyon  <christophe.lyon@linaro.org>
      
      	* gcc.target/arm/thumb-ifcvt.c: Add -mno-restrict-it to
      	dg-options.
      
      From-SVN: r224509
      Christophe Lyon committed
    • [AArch64 Testsuite obvious] Reinstate torture-init and torture-finalize · 8c629c03
      in advsimd-intrinsics.exp
      
      gcc/testsuite/
      
      	* gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
      	Reinstate calls to torture-init and torture-finalize.
      
      From-SVN: r224507
      James Greenhalgh committed
    • [ARM Churn] Rename LOGICAL_OP_NON_SC to LOGICAL_OP_NON_SHORT_CIRCUIT · ffa7068e
      gcc/ChangeLog:
      
      	* config/arm/arm-protos.h (struct tune_params): Rename
      	log_op_non_sc to log_op_non_short_circuit, and rename enum
      	values to expand SC to SHORT_CIRCUIT.
      	* config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
      	to LOG_OP_NON_SHORT_CIRCUIT.
      	(arm_fastmul_tune):Likewise
      	(arm_strongarm_tune): Likewise.
      	(arm_xscale_tune): Likewise.
      	(arm_9e_tune): Likewise.
      	(arm_marvell_pj4_tune): Likewise.
      	(arm_v6t2_tune): Likewise.
      	(arm_cortex_tune): Likewise.
      	(arm_cortex_a8_tune): Likewise.
      	(arm_cortex_a7_tune): Likewise.
      	(arm_cortex_a15_tune): Likewise.
      	(arm_cortex_a53_tune): Likewise.
      	(arm_cortex_a57_tune): Likewise.
      	(arm_xgene1_tune): Likewise.
      	(arm_cortex_a5_tune): Likewise.
      	(arm_cortex_a9_tune): Likewise.
      	(arm_cortex_a12_tune): Likewise.
      	(arm_v7m_tune): Likewise.
      	(arm_cortex_m7_tune): Likewise.
      	(arm_v6m_tune): Likewise.
      	(arm_fa726te_tune): Likewise.
      
      From-SVN: r224506
      James Greenhalgh committed
    • [ARM][obvious] Fix gcc.target/arm/attr_thumb.c · 14c46392
      	* gcc.target/arm/attr_thumb.c: Add -mno-restrict-it to dg-options.
      
      From-SVN: r224504
      Kyrylo Tkachov committed
    • re PR c++/58583 ([c++11] ICE with invalid non-static data member initialization in template) · 04eca83e
      	cp/
      	PR c++/58583
      	* cp-tree.h (DECL_INSTANTIATING_NSDMI_P): New.
      	* init.c (get_nsdmi): Check for DEFAULT_ARG in template case and
      	protect it from recursive instantiation.
      
      	testsuite/
      	PR c++/58583
      	* g++.dg/cpp0x/nsdmi-template14.C: New test.
      
      From-SVN: r224502
      Nathan Sidwell committed
    • Daily bump. · 4927b383
      From-SVN: r224500
      GCC Administrator committed
  2. 15 Jun, 2015 14 commits
    • escape: Analyze binary expressions. · 0df824fa
      Binary expressions might contain function calls that cause an object
      to escape.  Previously, there were not analyzed.
      
      Reviewed-on: https://go-review.googlesource.com/10660
      
      From-SVN: r224496
      Ian Lance Taylor committed
    • altivec.md: Delete UNSPEC_VMLADDUHM. · 7faaf44a
              * altivec.md: Delete UNSPEC_VMLADDUHM.
              (mulv4si3_p8): New pattern.
              (mulv4si3): Use it for POWER8.
              (mulv8hi3): Use vmladduhm with zero addend.
              (altivec_vmladduhm): Descriptive RTL.
      
      From-SVN: r224494
      David Edelsohn committed
    • aarch64.md (mov<mode>_aarch64): Change alternative 2 to use neon_move instead of mov_imm. · 6a0f8c01
      gcc/
      	* config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
      	to use neon_move instead of mov_imm.
      	(movdi_aarch64): Change alternative 14 to use neon_move not fmov.
      	(movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
      	* config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
      	aarch64_float_const_zero_rtx_p check before TFmode check.
      	* config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
      	an fp zero.
      	(movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
      	code and attributes to match.  Change condition from register_operand
      	to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
      	neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
      	to store2.
      
      From-SVN: r224493
      Jim Wilson committed
    • re PR c++/51048 (Class template inheritance doesn't work well with function-local types) · f92c7426
      /cp
      2015-06-15  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/51048
      	* decl2.c (no_linkage_error): Do not issue a permerror if the DECL
      	using a local type is pure virtual.
      
      /testsuite
      2015-06-15  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/51048
      	* g++.dg/cpp0x/local-type1.C: New.
      
      From-SVN: r224492
      Paolo Carlini committed
    • Remove dg-options -O2 in libgomp.c · d7bfc710
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
      	dg-additional-options for any remaining options.
      	* testsuite/libgomp.c/atomic-2.c: Same.
      	* testsuite/libgomp.c/atomic-4.c: Same.
      	* testsuite/libgomp.c/atomic-5.c: Same.
      	* testsuite/libgomp.c/atomic-6.c: Same.
      	* testsuite/libgomp.c/autopar-1.c: Same.
      	* testsuite/libgomp.c/copyin-1.c: Same.
      	* testsuite/libgomp.c/copyin-2.c: Same.
      	* testsuite/libgomp.c/copyin-3.c: Same.
      	* testsuite/libgomp.c/examples-4/e.53.5.c: Same.
      	* testsuite/libgomp.c/nestedfn-5.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
      	* testsuite/libgomp.c/pr32362-1.c: Same.
      	* testsuite/libgomp.c/pr32362-2.c: Same.
      	* testsuite/libgomp.c/pr32362-3.c: Same.
      	* testsuite/libgomp.c/pr39591-1.c: Same.
      	* testsuite/libgomp.c/pr39591-2.c: Same.
      	* testsuite/libgomp.c/pr39591-3.c: Same.
      	* testsuite/libgomp.c/pr58392.c: Same.
      	* testsuite/libgomp.c/pr58756.c: Same.
      	* testsuite/libgomp.c/simd-1.c: Same.
      	* testsuite/libgomp.c/simd-10.c: Same.
      	* testsuite/libgomp.c/simd-11.c: Same.
      	* testsuite/libgomp.c/simd-12.c: Same.
      	* testsuite/libgomp.c/simd-13.c: Same.
      	* testsuite/libgomp.c/simd-14.c: Same.
      	* testsuite/libgomp.c/simd-15.c: Same.
      	* testsuite/libgomp.c/simd-2.c: Same.
      	* testsuite/libgomp.c/simd-3.c: Same.
      	* testsuite/libgomp.c/simd-4.c: Same.
      	* testsuite/libgomp.c/simd-5.c: Same.
      	* testsuite/libgomp.c/simd-6.c: Same.
      	* testsuite/libgomp.c/simd-7.c: Same.
      	* testsuite/libgomp.c/simd-8.c: Same.
      	* testsuite/libgomp.c/simd-9.c: Same.
      
      From-SVN: r224489
      Tom de Vries committed
    • Add MERGE file to track the git revision of the most recent change in · 154a458e
      the master gofrontend repository.
      
      From-SVN: r224488
      Ian Lance Taylor committed
    • compiler: Don't crash when dumping ast of empty block. · b18fdafb
      Fixes golang/go#10420.
      
      From-SVN: r224487
      Ian Lance Taylor committed
    • re PR debug/66535 (segfault in gen_subprogram_die after debug-early merge) · 8e6dce3d
      	PR debug/66535
      	* dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
      	there is no parent.
      
      From-SVN: r224486
      Aldy Hernandez committed
    • Fix typo in libgomp/testsuite/libgomp.c/pr35625.c · fb5b5352
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/pr35625.c: Fix typo.
      
      From-SVN: r224483
      Tom de Vries committed
    • Remove -fopenmp in dg-options in libgomp.c · ca431bef
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
      	in dg-options.
      	* testsuite/libgomp.c/atomic-3.c: Same.
      	* testsuite/libgomp.c/debug-1.c: Same.
      	* testsuite/libgomp.c/nqueens-1.c: Same.
      	* testsuite/libgomp.c/pr26171.c: Same.
      	* testsuite/libgomp.c/pr48591.c: Same.
      	* testsuite/libgomp.c/pr64824.c: Same.
      	* testsuite/libgomp.c/pr64868.c: Same.
      	* testsuite/libgomp.c/pr66133.c: Same.
      	* testsuite/libgomp.c/pr66199-1.c: Same.
      	* testsuite/libgomp.c/pr66199-2.c: Same.
      	* testsuite/libgomp.c/target-8.c: Same.
      
      From-SVN: r224480
      Tom de Vries committed
    • Use dg-additional-options for -std={gnu99,c99} · 0d8a9e20
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
      	-std={gnu99,c99}.
      	* testsuite/libgomp.c/for-1.c: Same.
      	* testsuite/libgomp.c/for-2.c: Same.
      	* testsuite/libgomp.c/for-3.c: Same.
      	* testsuite/libgomp.c/pr35625.c: Same.
      	* testsuite/libgomp.c/pr39154.c: Same.
      	* testsuite/libgomp.c/simd-16.c: Same.
      	* testsuite/libgomp.c/simd-17.c: Same.
      
      From-SVN: r224479
      Tom de Vries committed
    • re PR fortran/44672 ([F08] ALLOCATE with SOURCE and no array-spec) · 1792349b
      gcc/testsuite/ChangeLog:
      
      2015-06-15  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/44672
      	PR fortran/45440
      	PR fortran/57307
      	* gfortran.dg/allocate_with_source_3.f90: Removed check for
      	unimplemented error.
      	* gfortran.dg/allocate_with_source_7.f08: New test.
      	* gfortran.dg/allocate_with_source_8.f08: New test.
      
      gcc/fortran/ChangeLog:
      
      2015-06-15  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/44672
      	PR fortran/45440
      	PR fortran/57307
      	* gfortran.h: Extend gfc_code.ext.alloc to carry a
      	flag indicating that the array specification has to be
      	taken from expr3.
      	* resolve.c (resolve_allocate_expr): Add F2008 notify
      	and flag indicating source driven array spec.
      	(resolve_allocate_deallocate): Check for source driven
      	array spec, when array to allocate has no explicit
      	array spec.
      	* trans-array.c (gfc_array_init_size): Get lower and
      	upper bound from a tree array descriptor, except when
      	the source expression is an array-constructor which is
      	fixed to be one-based.
      	(retrieve_last_ref): Extracted from gfc_array_allocate().
      	(gfc_array_allocate): Enable allocate(array, source= 
      	array_expression) as specified by F2008:C633.
      	(gfc_conv_expr_descriptor): Add class tree expression
      	into the saved descriptor for class arrays.
      	* trans-array.h: Add temporary array descriptor to
      	gfc_array_allocate ().
      	* trans-expr.c (gfc_conv_procedure_call): Special handling
      	for _copy() routine translation, that comes without an
      	interface. Third and fourth argument are now passed by value.
      	* trans-stmt.c (gfc_trans_allocate): Get expr3 array
      	descriptor for temporary arrays to allow allocate(array,
      	source = array_expression) for array without array
      	specification.
      
      From-SVN: r224477
      Andre Vehreschild committed
    • [AArch64] Change %ld to %wd for HOST_WIDE_INT parameter. · cf0c27ef
      From-SVN: r224476
      Shiva Chen committed
    • Daily bump. · 14c9cbc6
      From-SVN: r224475
      GCC Administrator committed
  3. 14 Jun, 2015 5 commits