1. 13 Oct, 2015 12 commits
    • sparc.h (SPARC_STACK_ALIGN): Implement using ROUND_UP macro and UNITS_PER_WORD * 2. · 58611c4f
      	* config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
      	ROUND_UP macro and UNITS_PER_WORD * 2.
      	* config/sparc/sparc.c (sparc_compute_frame_size):
      	Use ROUND_UP and ROUND_DOWN macros where applicable.
      	(function_arg_record_value, function_arg_record_value_1)
      	(function_arg_record_value_1): Ditto.
      	(emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
      	alignment to double-word.
      	(sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
      	(sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
      	rounded_size.
      
      From-SVN: r228769
      Uros Bizjak committed
    • sparc.h (SPARC_STACK_ALIGN): Implement using ROUND_UP macro and UNITS_PER_WORD * 2. · 63b8ef40
      	* config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
      	ROUND_UP macro and UNITS_PER_WORD * 2.
      	* config/sparc/sparc.c (sparc_compute_frame_size):
      	Use ROUND_UP and ROUND_DOWN macros where applicable.
      	(function_arg_record_value, function_arg_record_value_1)
      	(function_arg_record_value_1): Ditto.
      	(emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
      	alignment to double-word.
      	(sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
      	(sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
      	rounded_size.
      
      From-SVN: r228768
      Uros Bizjak committed
    • Fix parloops gimple_uid usage · fdce493d
      2015-10-13  Tom de Vries  <tom@codesourcery.com>
      
      	* tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
      	-1.  Add assert that returned entry matches phi argument.
      	(parallelize_loops): Move calls to init_stmt_vec_info_vec and
      	free_stmt_vec_info_vec ...
      	(gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
      	with -1.
      
      From-SVN: r228767
      Tom de Vries committed
    • Followup to [AArch64_be] Fix vtbl[34] and vtbx4 · f35a4f37
      2015-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
       
             * gcc/testsuite/gcc.target/aarch64/table-intrinsics.c: Fix regexp
             after r228716 (Fix vtbl[34] and vtbx4).
      
      From-SVN: r228762
      Christophe Lyon committed
    • PR tree-optimization/67909, 67947 · 8a18fcf4
      gcc/
      
      2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
      
      	PR tree-optimization/67909, 67947
      	* tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
      	really skip the inner loop.
      
      gcc/testsuite/
      
      2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
      
      	PR tree-optimization/67909, 67947
      	* gcc.dg/torture/pr67947.c: New test.
      
      From-SVN: r228760
      Yuri Rumyantsev committed
    • [PATCH] Allow FSM to thread single block cases too · 92a1d1e1
      	* tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
      	Allow single block jump threading paths.
      
      	* gcc.dg/tree-ssa/ssa-thread-13.c: New test.
      
      From-SVN: r228757
      Jeff Law committed
    • Add param parloops-schedule · 1f600fea
      2015-10-13  Tom de Vries  <tom@codesourcery.com>
      
      	PR tree-optimization/67476
      	* doc/invoke.texi (@item parloops-schedule): New item.
      	* params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
      	* tree-parloops.c: Include params-enum.h.
      	(create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
      
      	* testsuite/libgomp.c/autopar-3.c: New test.
      	* testsuite/libgomp.c/autopar-4.c: New test.
      	* testsuite/libgomp.c/autopar-5.c: New test.
      	* testsuite/libgomp.c/autopar-6.c: New test.
      	* testsuite/libgomp.c/autopar-7.c: New test.
      	* testsuite/libgomp.c/autopar-8.c: New test.
      
      From-SVN: r228756
      Tom de Vries committed
    • Support DEFPARAMENUM in params.def · d78182cc
      2015-10-13  Tom de Vries  <tom@codesourcery.com>
      
      	* Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
      	* params-enum.h: New file.
      	* opts.c (handle_param): Handle case that param arg is a string.
      	* params-list.h: Handle DEFPARAMENUM5 in params.def.
      	* params.c (find_param): New function, factored out of ...
      	(set_param_value): ... here.
      	(param_string_value_p): New function.
      	* params.h (struct param_info): Add value_names field.
      	(find_param, param_string_value_p): Declare.
      
      From-SVN: r228755
      Tom de Vries committed
    • Handle original loop tree in expand_omp_for_generic · 7fd103ef
      2015-10-13  Tom de Vries  <tom@codesourcery.com>
      
      	PR tree-optimization/67476
      	* omp-low.c (expand_omp_for_generic): Handle original loop tree.
      
      From-SVN: r228754
      Tom de Vries committed
    • tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate the data dependence vector. · b939ea86
      2015-10-13  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
      	the data dependence vector.
      	(vect_peeling_hash_insert): Get the peeling hash table as argument.
      	(vect_peeling_hash_get_lowest_cost): Likewise.
      	(vect_enhance_data_refs_alignment): Adjust.
      	(struct _vect_peel_info, struct _vect_peel_extended_info,
      	struct peel_info_hasher): Move from ...
      	* tree-vectorizer.h: ... here.
      	(LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
      	(LOOP_VINFO_PEELING_HTAB): Likewise.
      	(struct _loop_vec_info): Remove min_profitable_iters and
      	peeling_htab members.
      	* tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
      	here.
      	(destroy_loop_vec_info): Adjust.
      	(vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
      	(vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
      	to estimate alias versioning cost.
      	* tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
      
      From-SVN: r228751
      Richard Biener committed
    • To... · 9b054b08
      To: gcc-patches@gcc.gnu.org
      Subject: Add an extra pow rule to match.pd
      From: Richard Sandiford <richard.sandiford@arm.com>
      Gcc: private.sent
      --text follows this line--
      Simplify pow(|x|,y) and pow(-x,y) to pow(x,y) if y is an even integer.
      At the moment this duplicates a case in fold_builtin_pow, but an
      upcoming patch will move all the fold_builtin_pow rules to match.pd.
      I'm doing this one early to fix a regression in builtin-10.c for
      soft-float ARM.
      
      gcc/
      	* real.h (real_isinteger): Declare.
      	* real.c (real_isinteger): New function.
      	* match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
      	if y is an even integer.
      
      From-SVN: r228750
      Richard Sandiford committed
    • Daily bump. · 6696de8a
      From-SVN: r228743
      GCC Administrator committed
  2. 12 Oct, 2015 18 commits
  3. 11 Oct, 2015 10 commits
    • Test for __cxa_thread_atexit_impl when cross-compiling libstdc++ for GNU targets. · 3c97fe77
      I noticed that when testing glibc with a cross compiler I got
      
      UNSUPPORTED: nptl/tst-thread_local1
      
      because the libstdc++-v3 configuration for cross compiling defaulted
      to __cxa_thread_atexit_impl not being available.  This patch fixes
      GLIBCXX_CROSSCONFIG to run the same test (for the case covering
      targets with glibc) for __cxa_thread_atexit_impl as for native
      compilation, just as it runs most of the other tests done for native
      compilation (for these targets, it's not possible to build libstdc++
      without already having built libc, so link tests are OK).
      
      Tested with no regressions for cross to arm-none-linux-gnueabi.
      
      	* crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* |
      	*-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*>: Check for
      	__cxa_thread_atexit_impl.
      	* configure: Regenerate.
      
      From-SVN: r228695
      Joseph Myers committed
    • alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro. · d52c212f
      	* config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
      
      From-SVN: r228693
      Uros Bizjak committed
    • bb-reorder: Improve the simple algorithm for -Os (PR67864) · c70f0ca2
      As the PR points out, the "simple" reorder algorithm makes bigger code
      than the STC algorithm did, for -Os, for x86.  I now tested it for many
      different targets and it turns out to be worse everywhere.
      
      This simple patch tunes "simple" a bit; this makes it better than STC
      almost everywhere.  The only exceptions (for the targets where I have
      results) are x86 and mn10300.  For those targets it may be best to switch
      the default algorithm for -Os to STC.
      
      
      2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
      
      	PR rtl-optimization/67864
      	* gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
      	fallthrough edges for conditional jumps.  Don't sort candidate
      	edges if not optimizing for speed.
      
      From-SVN: r228692
      Segher Boessenkool committed
    • Add bdver4 for multiversioning and fix AMD model detection. · fac812f0
      2015-10-09  Venkataramanan kumar <venkataramanan.kumar@amd.com>
      
              * config/i386/cpuinfo.c (get_amd_cpu): Detect bdver4.
              (__cpu_indicator_init): Fix model selection for AMD CPUs.
      
      From-SVN: r228691
      Venkataramanan Kumar committed
    • always define REVERSE_CONDITION · f7dfb654
      gcc/ChangeLog:
      
      2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* defaults.h (REVERSE_CONDITION): New default definition.
      	* jump.c (reversed_comparison_code_parts): Adjust.
      
      From-SVN: r228690
      Trevor Saunders committed
    • remove unneeded #if for HARD_FRAME_POINTER_IS_ARG_POINTER · 38b0b093
      gcc/ChangeLog:
      
      2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
      	check HARD_FRAME_POINTER_IS_ARG_POINTER.
      
      From-SVN: r228689
      Trevor Saunders committed
    • always define FRAME_ADDR_RTX · a9e0a998
      gcc/ChangeLog:
      
      2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* defaults.h (FRAME_ADDR_RTX): New default definition.
      	* builtins.c (expand_builtin_return_addr): Adjust.
      
      From-SVN: r228688
      Trevor Saunders committed
    • always define DYNAMIC_CHAIN_ADDRESS · f407dfe9
      gcc/ChangeLog:
      
      2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
      	* builtins.c (expand_builtin_return_addr): Adjust.
      
      From-SVN: r228687
      Trevor Saunders committed
    • always define SETUP_FRAME_ADDRESSES · baf37960
      gcc/ChangeLog:
      
      2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
      	* builtins.c (expand_builtin_return_addr): Adjust.
      	* doc/tm.texi: Likewise.
      	* doc/tm.texi.in: Likewise.
      	* except.c (expand_builtin_unwind_init): Likewise.
      
      From-SVN: r228686
      Trevor Saunders committed
    • always define INITIAL_FRAME_ADDRESS_RTX · 579f2946
      gcc/ChangeLog:
      
      2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* builtins.c (expand_builtin_return_addr): Adjust.
      	* defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
      
      From-SVN: r228685
      Trevor Saunders committed