1. 07 Sep, 2011 25 commits
  2. 06 Sep, 2011 15 commits
    • Update documentation about tm_p.h · 7b50d234
      From-SVN: r178618
      Michael Meissner committed
    • hashtable_policy.h (_Prime_rehash_policy:: _M_next_bkt): Cast _M_max_load_factor to long double. · e25fc78f
      2011-09-06  François Dumont  <fdumont@gcc.gnu.org>
      	    Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/hashtable_policy.h (_Prime_rehash_policy::
      	_M_next_bkt): Cast _M_max_load_factor to long double.
      	(_Prime_rehash_policy::_M_bkt_for_elements): Use _M_next_bkt.
      	(_Prime_rehash_policy::_M_need_rehash): Likewise; cast all
      	float quantities to long double.
      
      Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
      
      From-SVN: r178615
      François Dumont committed
    • Fix altivec-17.C to match current compiler error message · a30d6527
      From-SVN: r178614
      Michael Meissner committed
    • Fix typo · cd5a1182
      From-SVN: r178612
      Eric Botcazou committed
    • re PR middle-end/50266 (ICE in decode_addr_const) · 693ddb1b
      	PR middle-end/50266
      	* c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
      	computations.
      
      From-SVN: r178611
      Eric Botcazou committed
    • i386.c (ix86_function_value_regno_p): Use AX_REG. · 8092dd90
      2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
      
              * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
              (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
      
      testsuite/ChangeLog:
      
      2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
      
              * gcc.target/i386/builtin-apply-mmx.c: Require ia32 effective target.
      
      From-SVN: r178610
      Uros Bizjak committed
    • * config/darwin10.h Remove duplicate LIB_SPEC. · cf8fd309
      From-SVN: r178609
      Iain Sandoe committed
    • Makefile.in (gnatlib-shared-darwin): Remove reference to "-lm". · f61fc398
      
      	* gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
      	reference to "-lm".
      
      From-SVN: r178608
      Iain Sandoe committed
    • Makefile.in (darwin, SO_OPTS): Provide architecture size switches to the link… · 84ef27d3
      Makefile.in (darwin, SO_OPTS): Provide architecture size switches to the link phase for shared libs.
      
      
      	* gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
      	size switches to the link phase for shared libs.
      
      From-SVN: r178606
      Iain Sandoe committed
    • Makefile.in (x86_64 darwin arch): Adjust LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants. · a1bf1ec7
      
      	* gcc-interface/Makefile.in (x86_64 darwin arch): Adjust 
      	LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
      
      From-SVN: r178605
      Iain Sandoe committed
    • re PR c++/50296 (New C++ test failures) · e2605091
      	PR c++/50296
      	* semantics.c (register_constexpr_fundef): Call is_valid_constexpr_fn.
      	(cx_check_missing_mem_inits): Handle bases and empty trivial members.
      	(validate_constexpr_fundecl): Remove.
      	* decl.c (start_preparsed_function): Don't call it.
      	* cp-tree.h: Don't declare it.
      
      From-SVN: r178604
      Jason Merrill committed
    • PR middle-end/44382: Tree reassociation improvement · df7b0cc4
      gcc/
      
      2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
      
      	PR middle-end/44382
      	* target.def (reassociation_width): New hook.
      
      	* doc/tm.texi.in (reassociation_width): Likewise.
      
      	* doc/tm.texi (reassociation_width): Likewise.
      
      	* doc/invoke.texi (tree-reassoc-width): New param documented.
      
      	* hooks.h (hook_int_uint_mode_1): New default hook.
      
      	* hooks.c (hook_int_uint_mode_1): Likewise.
      
      	* config/i386/i386.h (ix86_tune_indices): Add
      	X86_TUNE_REASSOC_INT_TO_PARALLEL and
      	X86_TUNE_REASSOC_FP_TO_PARALLEL.
      
      	(TARGET_REASSOC_INT_TO_PARALLEL): New.
      	(TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
      
      	* config/i386/i386.c (initial_ix86_tune_features): Add
      	X86_TUNE_REASSOC_INT_TO_PARALLEL and
      	X86_TUNE_REASSOC_FP_TO_PARALLEL.
      
      	(ix86_reassociation_width) implementation of
      	new hook for i386 target.
      
      	* params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
      
      	* tree-ssa-reassoc.c (get_required_cycles): New function.
      	(get_reassociation_width): Likewise.
      	(swap_ops_for_binary_stmt): Likewise.
      	(rewrite_expr_tree_parallel): Likewise.
      
      	(rewrite_expr_tree): Refactored. Part of code moved into
      	swap_ops_for_binary_stmt.
      
      	(reassociate_bb): Now checks reassociation width to be used
      	and call rewrite_expr_tree_parallel instead of rewrite_expr_tree
      	if needed.
      
      gcc/testsuite/
      
      2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
      
      	* gcc.dg/tree-ssa/pr38533.c (dg-options): Added option
      	--param tree-reassoc-width=1.
      
      	* gcc.dg/tree-ssa/reassoc-24.c: New test.
      	* gcc.dg/tree-ssa/reassoc-25.c: Likewise.
      
      From-SVN: r178602
      Enkovich Ilya committed
    • re PR target/47025 (Dead stores in variadic functions not eliminated) · df2f6100
      2011-09-06  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/47025
      	* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
      	uses nothing.
      	(call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
      	BUILT_IN_FREE.
      	(stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
      	definitely points to.
      	* tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
      	BUILT_IN_VA_START doesn't let its va_list argument escape.
      	* tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
      	not make any previous stores necessary.
      
      From-SVN: r178601
      Richard Guenther committed
    • Makefile.in, [...] (gnattools, [...]): New targets. · e972fd52
      	* gcc-interface/Makefile.in, gcc-interface/Make-lang.in
      	(gnattools, regnattools, cross-gnattools, canadian-gnattools,
      	gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
      	New targets.
      	(TOOLS_FLAGS_TO_PASS): New.
      	(../stamp-tools): Reintroduce, to avoid merge conflicts.
      
      From-SVN: r178600
      Arnaud Charlet committed
    • ipa-inline.h (struct inline_summary): Move versionable flag... · 124f1be6
      2011-09-06  Martin Jambor  <mjambor@suse.cz>
      
      	* ipa-inline.h (struct inline_summary): Move versionable flag...
      	* cgraph.h (struct cgraph_local_info): ...here
      	* ipa-cp.c (determine_versionability): Use the new versionable flag.
      	(determine_versionability): Likewise.
      	(ipcp_versionable_function_p): Likewise.
      	(ipcp_generate_summary): Likewise.
      	* ipa-inline-analysis.c (dump_inline_summary): Do not dump the
      	versionable flag.
      	(compute_inline_parameters): Do not clear the versionable flag.
      	(inline_read_section): Do not stream the versionable flag.
      	(inline_write_summary): Likewise.
      	* lto-cgraph.c (lto_output_node): Stream the versionable flag.
      	(input_overwrite_node): Likewise.
      
      From-SVN: r178598
      Martin Jambor committed