1. 19 Nov, 2014 7 commits
  2. 18 Nov, 2014 33 commits
    • [Patch] PR target/63937 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P should take an… · 445d7826
      [Patch] PR target/63937 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P should take an unsigned HOST_WIDE_INT size argument
      
      gcc/
      
      	PR target/63937
      	* target.def (use_by_pieces_infrastructure_p): Take unsigned
      	HOST_WIDE_INT as the size parameter.
      	* targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
      	* targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
      	* config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
      	* config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
      	* config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
      	* config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
      	* config/aarch64/aarch64.c
      	(aarch64_use_by_pieces_infrastructure_p)): Likewise.
      	* doc/tm.texi: Regenerate.
      
      gcc/testsuite/
      
      	PR target/63937
      	* gcc.dg/memset-2.c: New.
      
      From-SVN: r217742
      James Greenhalgh committed
    • re PR sanitizer/63813 ([UBSAN] ICE in ubsan_type_descriptor, at ubsan.c:346) · c39a5e99
      	PR sanitizer/63813
      	* c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
      	argument to ptype, set type to TREE_TYPE (ptype).  Don't call
      	get_pointer_alignment for non-pointers.  Use ptype, or if it is
      	reference type, corresponding pointer type, as type of kind
      	argument.
      	(ubsan_maybe_instrument_reference,
      	ubsan_maybe_instrument_member_call): Adjust callers.
      
      	* g++.dg/ubsan/pr63813.C: New test.
      
      From-SVN: r217741
      Jakub Jelinek committed
    • re PR tree-optimization/61042 (ICE on valid code at -O3 on x86_64-linux-gnu) · d236c803
      	PR tree-optimization/61042
      	* gcc.c-torture/compile/pr61042.c: New test.
      
      From-SVN: r217740
      Jakub Jelinek committed
    • mt-ospace (CFLAGS_FOR_TARGET): Append -g -Os rather than overwriting. · 31f44312
      2014-11-17  Bob Dunlop  <bob.dunlop@xyzzy.org.uk>
      
              * mt-ospace (CFLAGS_FOR_TARGET): Append -g -Os rather than
              overwriting.
              (CXXFLAGS_FOR_TARGET): Similarly.
      
      From-SVN: r217739
      Bob Dunlop committed
    • re PR c++/63940 (C++ constexpr errors on AIX) · f899317e
      	PR c++/63940
      	* constexpr.c (cxx_eval_binary_expression): Don't assume the
      	expression was already folded.
      	(cxx_eval_unary_expression): Likewise.
      
      From-SVN: r217738
      Jason Merrill committed
    • ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn. · 2bf86c84
      
      	* ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
      	(ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
      	(ipa_get_indirect_edge_target_1): Use opt_for_fn.
      	(good_cloning_opportunity_p): Likewise.
      	(ipa-cp gate): Enable ipa-cp with LTO.
      	* ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
      	* ipa.c (symbol_table::remove_unreachable_nodes): Always build type
      	inheritance.
      	* ipa-inline-transform.c (inline_transform): Check if there are inlines
      	to apply even at -O0.
      	* cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
      	(analyze_functions): Build type inheritance graph.
      	* ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
      	(want_early_inline_function_p, want_inline_small_function_p):
      	Likewise.
      	(check_callers): Likewise.
      	(edge_badness): Likewise.
      	(inline_small_functions): Always be ready for indirect inlining
      	to happend.
      	(ipa_inline): Always use want_inline_function_to_all_callers_p.
      	(early_inline_small_functions): Use opt_for_fn.
      	* ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
      	(estimate_function_body_sizes): Likewise.
      	(compute_inline_parameters): Likewise.
      	(estimate_edge_devirt_benefit): Likewise.
      	(inline_analyze_function): Likewise.
      	* ipa-devirt.c (ipa_devirt): Likewise.
      	(gate): Use in_lto_p.
      	* ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
      	(try_make_edge_direct_virtual_call): Likewise.
      	(update_indirect_edges_after_inlining): Likewise.
      	(ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
      	* common.opt (findirect-inlining): Turn into optimization.
      	* ipa-pure-const.c (add_new_function): Use opt_for_fn.
      	(pure_const_generate_summary): Likewise.
      	(gate_pure_const): Always enable with in_lto_p.
      
      From-SVN: r217737
      Jan Hubicka committed
    • re PR libstdc++/43622 (Incomplete C++ library support for __float128) · bb59f396
      2014-11-18  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR libstdc++/43622
      gcc/cp/
      	* rtti.c (emit_support_tinfos): Handle __float128.
      libstdc++-v3/
      	* config/abi/pre/float128.ver: New file.
      	* configure.ac: Use float128.ver when relevant.
      	* configure: Regenerate.
      	* testsuite/util/testsuite_abi.cc (check_version): Accept new
      	CXXABI_FLOAT128 version.
      
      From-SVN: r217735
      Marc Glisse committed
    • re PR c++/63925 (ICE with C++14 constexpr when trying to constexprify std::min) · ac2f8d26
      	PR c++/63925
      	* constexpr.c (cxx_eval_increment_expression): Use POINTER_PLUS_EXPR.
      
      From-SVN: r217731
      Jason Merrill committed
    • compiler: Initialize variables in declaration order. · cafc9af2
      Fixes issue 8052.
      
      From-SVN: r217730
      Ian Lance Taylor committed
    • re PR c++/63934 ([C++] internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020) · de614750
      	PR c++/63934
      	* constexpr.c (cxx_eval_call_expression): Check DECL_CONSTRUCTOR_P
      	rather than VOID_TYPE_P.
      
      From-SVN: r217729
      Jason Merrill committed
    • mips.md (compression): Add `micromips32' setting. · 5d2d755e
      	* config/mips/mips.md (compression): Add `micromips32' setting.
      	(enabled, length): Handle it.
      	(shift_compression): Replace `micromips' with `micromips32' in
      	the `compression' attribute.
      	(*add<mode>3, sub<mode>3): Likewise.
      
      From-SVN: r217728
      Maciej W. Rozycki committed
    • mips.md (*jump_absolute): Use a branch when in range, a jump otherwise. · 73af680e
      	* gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
      	range, a jump otherwise.
      
      From-SVN: r217727
      Maciej W. Rozycki committed
    • c11-atomic-exec-5.c (dg-timeout-factor): New setting. · 699aa7d0
      	* gcc.dg/atomic/c11-atomic-exec-5.c (dg-timeout-factor): New
      	setting.
      
      From-SVN: r217726
      Maciej W. Rozycki committed
    • [ARM/AArch64] Improve modeled latency between FP operations and FP->GP register moves · 58bd290e
      	* config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
      	Split into...
      	(cortex_a15_gp_to_vfp): ...This.
      	(cortex_a15_fp_to_gp): ...And this.
      	Define and comment bypass from vfp operations to fp->gp moves.
      
      From-SVN: r217725
      Kyrylo Tkachov committed
    • fibonacci_heap is used for var-tracking. · 7b69b603
      	* var-tracking.c (vt_find_locations): New fibonacci_node is used.
      
      From-SVN: r217724
      Martin Liska committed
    • bt-load is ported to fibonacci_heap. · b5bfe5bd
      	* bt-load.c (add_btr_def): New fibonacci_heap is used.
      	(migrate_btr_defs): Likewise.
      
      From-SVN: r217723
      Martin Liska committed
    • tracer ported to new fibonacci_heap data structure. · dd7bda5e
      	* tracer.c (tail_duplicate): New fibonacci_heap class is used.
      
      From-SVN: r217722
      Martin Liska committed
    • fibonacci_heap is used for bb-reoder purpose. · 8d261514
      	* bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
      	(find_traces): Likewise.
      	(find_traces_1_round): Likewise.
      
      From-SVN: r217721
      Martin Liska committed
    • New template fibonacci_heap class introduced. · 4a910049
      	* fibonacci_heap.h: New file.
      	(fibonacci_heap::insert): Created from fibheap_insert.
      	(fibonacci_heap::empty): Created from fibheap_empty.
      	(fibonacci_heap::nodes): Created from fibheap_nodes.
      	(fibonacci_heap::min_key): Created from fibheap_min_key.
      	(fibonacci_heap::decrease_key): Created from fibheap_replace_key.
      	(fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
      	(fibonacci_heap::extract_min): Created from fibheap_extract_min.
      	(fibonacci_heap::min): Created from fibheap_min.
      	(fibonacci_heap::replace_data): Created from fibheap_replace_data.
      	(fibonacci_heap::delete_node): Created from fibheap_delete_node.
      	(fibonacci_heap::union_with): Created from fibheap_union.
      	* ipa-inline.c (update_edge_key): New heap API is used.
      	(update_caller_keys): Likewise.
      	(update_callee_keys): Likewise.
      	(lookup_recursive_calls): Likewise.
      	(recursive_inlining): Likewise.
      	(add_new_edges_to_heap): Likewise.
      	(heap_edge_removal_hook): Likewise.
      	(inline_small_functions): Likewise.
      
      From-SVN: r217720
      Martin Liska committed
    • re PR c++/55942 ([C++11] sorry, unimplemented: calling a member function of the… · 1b85e4b2
      re PR c++/55942 ([C++11] sorry, unimplemented: calling a member function of the object being constructed in a constant expression)
      
      2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/55942
      	* g++.dg/cpp0x/constexpr-55942.C: New.
      
      From-SVN: r217719
      Paolo Carlini committed
    • re PR sanitizer/63866 (ICE in C++ printer with -fdump-ipa) · bebcdc67
      	PR sanitizer/63866
      	* asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
      	put it into TYPE_NAME and TYPE_STUB_DECL.
      	* ubsan.c (ubsan_type_descriptor_type): New variable.
      	Function renamed to ...
      	(ubsan_get_type_descriptor_type): ... this.  Cache
      	return value in ubsan_type_descriptor_type variable.
      	Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
      	TYPE_NAME and TYPE_STUB_DECL.
      	(ubsan_get_source_location_type): Create a TYPE_DECL for
      	"__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
      	(ubsan_type_descriptor, ubsan_create_data): Call
      	ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
      	Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
      
      	* c-c++-common/ubsan/pr63866.c: New test.
      
      From-SVN: r217718
      Marek Polacek committed
    • aarch64.c (doloop_end): New pattern. · 594bdd53
             * config/aarch64/aarch64.c (doloop_end): New pattern.
             * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
      
      From-SVN: r217717
      Felix Yang committed
    • re PR c++/58102 (rejects valid initialization of constexpr object with mutable member) · 023d89c7
      	PR c++/58102
      	* typeck2.c (store_init_value): Set it.
      	* cp-tree.h (CONSTRUCTOR_MUTABLE_POISON): New.
      	* constexpr.c (cxx_eval_outermost_constant_expr): Check it.
      
      From-SVN: r217713
      Jason Merrill committed
    • re PR tree-optimization/63914 (ICE in set_lattice_value, at tree-ssa-ccp.c:517) · bee1d478
      2014-11-18  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/63914
      	* tree-ssa-ccp.c (canonicalize_value): Remove float value
      	canonicalization.
      	(valid_lattice_transition): Allow (partial) transition
      	from NaN to non-NaN if !HONOR_NANS.
      	(set_lattice_value): Check for valid lattice transitions
      	only when checking is enabled.
      
      	* gcc.dg/pr63914.c: New testcase.
      
      From-SVN: r217712
      Richard Biener committed
    • re PR c++/55443 (ICE for some placement new expressions inside noexcept operator) · 60dcf0e0
      2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/55443
      	* g++.dg/cpp0x/noexcept26.C: New.
      	* g++.dg/cpp0x/noexcept27.C: Likewise.
      
      From-SVN: r217711
      Paolo Carlini committed
    • Fix header conflicts in nvptx. · 3a4d1cb1
      	* config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
      
      From-SVN: r217710
      Bernd Schmidt committed
    • re PR c++/60245 (function with using defined parameter not accepted as constexpr parameter) · a6965b65
      2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/60245
      	* g++.dg/cpp0x/constexpr-60245.C: New.
      
      From-SVN: r217709
      Paolo Carlini committed
    • re PR c++/60771 (static in-class constexpr const reference initialization) · 6e939407
      2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/60771
      	* g++.dg/cpp0x/constexpr-ref6.C: New.
      
      From-SVN: r217708
      Paolo Carlini committed
    • neon-testgen.ml (emit_prologue): Handle new compile_test_optim argument. · c8196921
      2014-11-18  Christophe Lyon  <christophe.lyon@linaro.org>
      
      	gcc/
      	* config/arm/neon-testgen.ml (emit_prologue): Handle new
      	compile_test_optim argument.
      	(emit_automatics): Rename to emit_variables. Support variable
      	indentation of its output.
      	(compile_test_optim): New function.
      	(test_intrinsic): Call compile_test_optim.
      	* config/arm/neon.ml (features): Add Compiler_optim.
      	(ops): Add Compiler_optim feature to Vbic and Vorn.
      	(type_in_crypto_only): Replace 'or' by '||'.
      	(reinterp): Likewise.
      	(reinterpq): Likewise.
      
      	testsuite/
      	* gcc.target/arm/neon/vbicQs16.c: Regenerate.
      	* gcc.target/arm/neon/vbicQs32.c: Likewise.
      	* gcc.target/arm/neon/vbicQs64.c: Likewise.
      	* gcc.target/arm/neon/vbicQs8.c: Likewise.
      	* gcc.target/arm/neon/vbicQu16.c: Likewise.
      	* gcc.target/arm/neon/vbicQu32.c: Likewise.
      	* gcc.target/arm/neon/vbicQu64.c: Likewise.
      	* gcc.target/arm/neon/vbicQu8.c: Likewise.
      	* gcc.target/arm/neon/vbics16.c: Likewise.
      	* gcc.target/arm/neon/vbics32.c: Likewise.
      	* gcc.target/arm/neon/vbics64.c: Likewise.
      	* gcc.target/arm/neon/vbics8.c: Likewise.
      	* gcc.target/arm/neon/vbicu16.c: Likewise.
      	* gcc.target/arm/neon/vbicu32.c: Likewise.
      	* gcc.target/arm/neon/vbicu64.c: Likewise.
      	* gcc.target/arm/neon/vbicu8.c: Likewise.
      	* gcc.target/arm/neon/vornQs16.c: Likewise.
      	* gcc.target/arm/neon/vornQs32.c: Likewise.
      	* gcc.target/arm/neon/vornQs64.c: Likewise.
      	* gcc.target/arm/neon/vornQs8.c: Likewise.
      	* gcc.target/arm/neon/vornQu16.c: Likewise.
      	* gcc.target/arm/neon/vornQu32.c: Likewise.
      	* gcc.target/arm/neon/vornQu64.c: Likewise.
      	* gcc.target/arm/neon/vornQu8.c: Likewise.
      	* gcc.target/arm/neon/vorns16.c: Likewise.
      	* gcc.target/arm/neon/vorns32.c: Likewise.
      	* gcc.target/arm/neon/vorns64.c: Likewise.
      	* gcc.target/arm/neon/vorns8.c: Likewise.
      	* gcc.target/arm/neon/vornu16.c: Likewise.
      	* gcc.target/arm/neon/vornu32.c: Likewise.
      	* gcc.target/arm/neon/vornu64.c: Likewise.
      	* gcc.target/arm/neon/vornu8.c: Likewise.
      
      From-SVN: r217707
      Christophe Lyon committed
    • vcls.c: New test. · 58332aa0
      2014-11-18  Christophe Lyon  <christophe.lyon@linaro.org>
      
      	gcc/testsuite/
      	* gcc.target/aarch64/advsimd-intrinsics/vcls.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vcnt.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vcombine.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vcreate.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vcvt.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vdup_lane.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vext.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vget_high.c: New test.
      	* gcc.target/aarch64/advsimd-intrinsics/vget_low.c: New test.
      
      From-SVN: r217706
      Christophe Lyon committed
    • [AArch64]Replace temporary assembler for vld1_dup · fcfce895
              * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
              vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
              vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
              vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
              vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
              vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
              pointer dereference.
      
      From-SVN: r217705
      Alan Lawrence committed