1. 30 Aug, 2013 11 commits
    • function.c (assign_parm_setup_reg): For a parameter passed by pointer and which… · f7e088e7
      function.c (assign_parm_setup_reg): For a parameter passed by pointer and which can live in a register...
      
      	* function.c (assign_parm_setup_reg): For a parameter passed by pointer
      	and which can live in a register, always retrieve the value on entry.
      	* var-tracking.c (add_stores): Treat the copy on entry for a parameter
      	passed by invisible reference specially.
      	(emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
      	(vt_add_function_parameter): Correctly deal with a parameter passed by
      	invisible reference.
      
      From-SVN: r202102
      Eric Botcazou committed
    • Add custom HTM fast path for RTM on x86_64. · bec9ec3f
      	* libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
      	(htm_fastpath): Assign an asm name.
      	* libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
      	HTM fast paths.
      	(_ITM_actions): Likewise.
      	* config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
      	x86_64.
      	* config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
      	* config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
      	field to the start of the structure.
      	* config/linux/rwlock.h (gtm_rwlock): Update comments.
      	* beginend.cc (gtm_thread::begin_transaction): Add retry policy
      	handling for custom HTM fast paths.
      
      From-SVN: r202101
      Torvald Riegel committed
    • Correct previous patch to not mark terminate as LEAF. · 8595a07d
      	* class.c (build_vtbl_initializer): Drop LEAF
      	* decl.c (cxx_init_decl_processing): Likewise.
      	(push_throw_library_fn): Likewise.
      	* except.c (init_exception_processing): Likewise.
      	(do_begin_catch): Likewise.
      	(do_end_catch): Likewise.
      	(do_allocate_exception): Likewise.
      
      From-SVN: r202100
      Jan Hubicka committed
    • class.c (build_vtbl_initializer): Make __cxa_deleted_virtual ECF_NORETURN | ECF_LEAF · fafa0521
      	* class.c (build_vtbl_initializer): Make __cxa_deleted_virtual
      	ECF_NORETURN | ECF_LEAF
      	* cp-tree.h (build_library_fn_ptr, build_cp_library_fn_ptr,
      	push_library_fn, push_void_library_fn): Update prototype.
      	* decl.c (build_library_fn_1): Remove.
      	(push_cp_library_fn, build_cp_library_fn): Update to take ECF flags.
      	(cxx_init_decl_processing): Update; global_delete_fndecl is ECF_NOTROW;
      	__cxa_pure_virtual is ECF_NORETURN | ECF_NORETURN | ECF_LEAF.
      	(build_library_fn_1): Add ecf_flags argument; rename to ...
      	(build_library_fn): ... this one.
      	(build_cp_library_fn): Take ecf_flags; do not copy NOTHROW flag.
      	(build_library_fn_ptr): Take ecf_flags.
      	(build_cp_library_fn_ptr): Likewise.
      	(push_library_fn): Likewise.
      	(push_cp_library_fn): Likewise.
      	(push_void_library_fn): Likewise.
      	(push_throw_library_fn): All throws are ECF_NORETURN.
      	(__cxa_atexit, __cxa_thread_atexit): Add ECF_LEAF | ECF_NOTHROW attributes.
      	(expand_static_init): __cxa_guard_acquire, __cxa_guard_release,
      	__cxa_guard_abort are ECF_NOTHROW | ECF_LEAF.
      	* except.c (init_exception_processing): terminate is
      	ECF_NOTHROW | ECF_NORETURN | ECF_LEAF.
      	(declare_nothrow_library_fn): Add ecf_flags parameter.
      	(__cxa_get_exception_ptr): Is ECF_NOTHROW | ECF_PURE | ECF_LEAF |
      	ECF_TM_PURE.
      	(do_begin_catch): cxa_begin_catch and _ITM_cxa_begin_catch
      	are ECF_NOTHROW | ECF_LEAF.
      	(do_end_catch): __cxa_end_catch and _ITM_cxa_end_catch is
      	ECF_LEAF.
      	(do_allocate_exception): _cxa_allocate_exception
      	and _ITM_cxa_allocate_exception are ECF_NOTHROW | ECF_MALLOC
      	| ECF_LEAF
      	(do_free_exception): __cxa_free_exception is
      	ECF_NOTHROW | ECF_LEAF.
      	* rtti.c (build_dynamic_cast_1): __dynamic_cast
      	is ECF_LEAF | ECF_PURE | ECF_NOTHROW.
      
      From-SVN: r202099
      Jan Hubicka committed
    • * tree.c (set_call_expr_flags): Fix handling of TM_PURE. · 47500756
      From-SVN: r202098
      Jan Hubicka committed
    • re PR tree-optimization/58228 (wrong code (with vectorization?) at -O3 on x86_64-linux-gnu) · 6e8dad05
      2013-08-30  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58228
      	* tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
      	allow invariant loads in nested loop vectorization.
      
      	* gcc.dg/torture/pr58228.c: New testcase.
      
      From-SVN: r202097
      Richard Biener committed
    • re PR tree-optimization/58223 (wrong code at -O3 on x86_64-linux-gnu) · 062ef2c8
      2013-08-30  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58223
      	* tree-loop-distribution.c (has_anti_dependence): Rename to ...
      	(has_anti_or_output_dependence): ... this and adjust to also
      	look for output dependences.
      	(mark_nodes_having_upstream_mem_writes): Adjust.
      	(rdg_flag_uses): Likewise.
      
      	* gcc.dg/torture/pr58223.c: New testcase.
      	* gcc.dg/tree-ssa/ldist-16.c: Flip expected behavior.
      
      From-SVN: r202096
      Richard Biener committed
    • re PR tree-optimization/58010 (ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378) · 7a764c60
      2013-08-30  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58010
      	* tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
      	assert that we have a loop-closed PHI.
      
      	* gcc.dg/pr58010.c: New testcase.
      
      From-SVN: r202095
      Richard Biener committed
    • lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state. · 82e9d642
      
      	* lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
      	* cgraph.c (cgraph_release_function_body): Free decl_in_state.
      	* lto-section-in.c (lto_free_function_in_decl_state): New function.
      	(lto_free_function_in_decl_state_for_node): New function.
      
      From-SVN: r202094
      Jan Hubicka committed
    • lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state. · 256eefa9
      	* lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
      	* cgraph.c (cgraph_release_function_body): Free decl_in_state.
      	* lto-section-in.c (lto_free_function_in_decl_state): New function.
      	(lto_free_function_in_decl_state_for_node): New function.
      
      	* lto.c (read_cgraph_and_symbols): Remove ggc_collect;
      	clear section node; add comment why we do not collect.
      
      From-SVN: r202093
      Jan Hubicka committed
    • Daily bump. · 3f0fdc34
      From-SVN: r202092
      GCC Administrator committed
  2. 29 Aug, 2013 15 commits
  3. 28 Aug, 2013 14 commits