1. 12 Oct, 2015 7 commits
  2. 11 Oct, 2015 11 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
    • Daily bump. · 9c02b29a
      From-SVN: r228684
      GCC Administrator committed
  3. 10 Oct, 2015 7 commits
    • tree.c (type_with_interoperable_signedness): New. · 6ba9c455
      
      	* tree.c (type_with_interoperable_signedness): New.
      	(gimple_canonical_types_compatible_p): Use it.
      	* tree.h (type_with_interoperable_signedness): Declare
      
      From-SVN: r228681
      Jan Hubicka committed
    • tree.c (type_with_interoperable_signedness): New. · 9c4eeafc
      
      	* tree.c (type_with_interoperable_signedness): New.
      	(gimple_canonical_types_compatible_p): Use it.
      	* tree.h (type_with_interoperable_signedness): Declare
      
      	* lto.c (hash_canonical_type): Honor
      	type_with_interoperable_signedness.
      
      	* gfortran.dg/lto/bind_c-2_0.f90: New testcase.
      	* gfortran.dg/lto/bind_c-2_1.c: New testcase.
      	* gfortran.dg/lto/bind_c-3_0.f90: New testcase.
      	* gfortran.dg/lto/bind_c-3_1.c: New testcase.
      	* gfortran.dg/lto/bind_c-4_0.f90: New testcase.
      	* gfortran.dg/lto/bind_c-4_1.c: New testcase.
      	* gfortran.dg/lto/bind_c-5_0.f90: New testcase.
      	* gfortran.dg/lto/bind_c-5_1.c: New testcase.
      
      From-SVN: r228680
      Jan Hubicka committed
    • fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF and OEP_CONSTANT_ADDRESS_OF... · 05486daa
      	* fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
      	and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
      	when OEP_ADDRESS_OF is se.
      
      From-SVN: r228679
      Jan Hubicka committed
    • add dump of data dependences · ea17c0fe
      2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
                      Sebastian Pop  <s.pop@samsung.com>
      
                      * graphite-dependences.c (scop_get_dependences): Add dump of the
                      data dependence graph.
                      * graphite-poly.c (print_isl_union_map): New.
                      (debug_isl_union_map): New.
                      * graphite-poly.h (print_isl_union_map): Declare.
                      (debug_isl_union_map): Declare.
      
      Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
      
      From-SVN: r228677
      Aditya Kumar committed
    • clean up debug functions · 5c24066b
      2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
                      Sebastian Pop  <s.pop@samsung.com>
      
              * graphite-poly.c (print_iteration_domain): Remove verbosity.
              Remove OpenScop formatting.
              (print_iteration_domains): Same.
              (debug_iteration_domain): Same.
              (debug_iteration_domains): Same.
              (print_pdr): Same.
              (debug_pdr): Same.
              (dump_gbb_cases): Same.
              (dump_gbb_conditions): Same.
              (print_pdrs): Same.
              (debug_pdrs): Same.
              (print_pbb_body): Same.
              (print_pbb): Same.
              (print_scop_params): Same.
              (print_scop_context): Same.
              (print_scop): Same.
              (debug_pbb_domain): Same.
              (debug_pbb): Same.
              (debug_scop_context): Same.
              (debug_scop): Same.
              (debug_scop_params): Same.
              * graphite-poly.h: Same.
              * graphite.c (graphite_transform_loops): Same.
      
      Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
      
      From-SVN: r228676
      Aditya Kumar committed
    • remove an unneeded as_a<rtx_insn *> () · 9a24a3cc
      gcc/ChangeLog:
      
      2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
      	call that isn't needed.
      
      From-SVN: r228675
      Trevor Saunders committed
    • Daily bump. · b3fe7d2b
      From-SVN: r228672
      GCC Administrator committed
  4. 09 Oct, 2015 15 commits
    • Re: [PATCH] Update SSA_NAME manager to use two lists · 9cf1766f
      	* tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
      	rather than moving each name to the freelist individually.
      
      From-SVN: r228668
      Jeff Law committed
    • mips.exp (mips_option_groups): Add -mframe-header-opt and -mno-frame-header-opt options. · 4c926b8a
      2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
      
      	* gcc.target/mips/mips.exp (mips_option_groups): Add -mframe-header-opt
      	and -mno-frame-header-opt options.
      	* gcc.target/mips/frame-header-1.c: New file.
      	* gcc.target/mips/frame-header-2.c: New file.
      	* gcc.target/mips/frame-header-3.c: New file.
      
      From-SVN: r228667
      Steve Ellcey committed
    • config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs. · d41c8b4c
      2015-10-05  Steve Ellcey  <sellcey@imgtec.com>
      
      	* config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
      	* frame-header-opt.c: New file.
      	* config/mips/mips-proto.h (mips_register_frame_header_opt):
      	Add prototype.
      	* config/mips/mips.c (mips_compute_frame_info): Check
      	optimize_call_stack flag.
      	(mips_option_override): Register new frame_header_opt pass.
       	(mips_frame_info, mips_int_mask, mips_shadow_set,
      	machine_function): Move these types to...
      	* config/mips/mips.h: here.
      	(machine_function): Add does_not_use_frame_header and
      	optimize_call_stack fields.
      	* config/mips/t-mips (frame-header-opt.o): Add new make rule.
      	* doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
      	Document new flags.
      	* config/mips/mips.opt (mframe-header-opt): Add new option.
      
      From-SVN: r228666
      Steve Ellcey committed
    • * config/i386/i386.c · b867c7ca
      	(expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
      	ROUND_DOWN where applicable.
      
      From-SVN: r228665
      Uros Bizjak committed
    • [PATCH] [6/n] Fix minor SSA_NAME leaks · 7532abf2
      	* tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
      	correct statement.
      
      From-SVN: r228663
      Jeff Law committed
    • [PATCH][ARM]Add earlyclobber modifier for neon_(vtrn, vuzp, vzip)<mode>_insn rtx · 97400916
      pattern.
      
      gcc/
      
      2015-10-09  Renlin Li  <renlin.li@arm.com>
      
      	* config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
              operands[0] and operands[2].
              (neon_vtrn<mode>_insn): Likewise.
              (neon_vzip<mode>_insn): Likewise.
      
      From-SVN: r228662
      Renlin Li committed
    • [PATCH V3][GCC] Algorithmic optimization in match and simplify · 84ff66b8
      gcc/ChangeLog
      
      	* match.pd: ((X inner_op C0) outer_op C1) New pattern.
      	((X & C2) << C1): Expand to...
      	(X {&,^,|} C2 << C1): ...This.
      	((X & C2) >> C1): Expand to...
      	(X {&,^,|} C2 >> C1): ...This.
      
      gcc/testsuite/ChangeLog
      
      	* gcc.dg/tree-ssa/forwprop-33.c: New.
      
      
      Co-Authored-By: Hale Wang <hale.wang@arm.com>
      
      From-SVN: r228661
      Andre Vieira committed
    • AVX512: Fix embedded rounding/SAE specifier position. · 0fc87f2f
      gcc/
      
      	PR target/67895
      	* config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
      	Adjust embedded rounding/SAE specifier position.
      	(define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
      	(define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
      	(define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
      	(define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
      	(define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
      	Likewise.
      	(define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
      
      gcc/testsuite
      
      	PR target/67895
      	* gcc.target/i386/avx512dq-vrangepd-1.c: Adjust assembly regexp.
      	* gcc.target/i386/avx512dq-vrangeps-1.c: Likewise.
      	* gcc.target/i386/avx512dq-vrangesd-1.c: Likewise.
      	* gcc.target/i386/avx512dq-vrangess-1.c: Likewise.
      	* gcc.target/i386/avx512f-vcvtsi2sd64-1.c: Likewise.
      	* gcc.target/i386/avx512f-vcvtsi2ss-1.c: Likewise.
      	* gcc.target/i386/avx512f-vcvtsi2ss64-1.c: Likewise.
      	* gcc.target/i386/avx512f-vcvtusi2sd64-1.c: Likewise.
      	* gcc.target/i386/avx512f-vcvtusi2ss-1.c: Likewise.
      	* gcc.target/i386/avx512f-vcvtusi2ss64-1.c: Likewise.
      
      From-SVN: r228660
      Alexander Fomin committed
    • Testsuite: add dg-{begin|end}-multiline-output commands · 9e531d37
      This patch adds an easy way to write tests for expected multiline
      output.  For example we can test carets and underlines for
      a particular diagnostic with:
      
      /* { dg-begin-multiline-output "" }
       typedef struct _GMutex GMutex;
                      ^~~~~~~
         { dg-end-multiline-output "" } */
      
      multiline.exp is used by prune.exp; hence we need to load it before
      prune.exp via *load_gcc_lib* for the testsuites of the various
      non-"gcc" support libraries (e.g. boehm-gc).
      
      gcc/testsuite/ChangeLog:
      	* lib/multiline.exp: New file.
      	* lib/prune.exp: Load multiline.exp.
      	(prune_gcc_output): Call into multiline.exp to handle any
      	multiline output directives.
      	* lib/libgo.exp: Load multiline.exp before prune.exp, using
      	load_gcc_lib.
      
      boehm-gc/ChangeLog:
      	* testsuite/lib/boehm-gc.exp: Load multiline.exp before
      	prune.exp, using load_gcc_lib.
      
      libatomic/ChangeLog:
      	* testsuite/lib/libatomic.exp: Load multiline.exp before
      	prune.exp, using load_gcc_lib.
      
      libgomp/ChangeLog:
      	* testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
      	using load_gcc_lib.
      
      libitm/ChangeLog:
      	* testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
      	using load_gcc_lib.
      
      libvtv/ChangeLog:
      	* testsuite/lib/libvtv.exp: Load multiline.exp before prune.exp,
      	using load_gcc_lib.
      
      From-SVN: r228655
      David Malcolm committed
    • [PR 67794] Also remap SSA_NAMEs defined in ASMs in IPA-SRA · 6651d6b4
      2015-10-09  Martin Jambor  <mjambor@suse.cz>
      
      	tree-optimization/67794
      	* tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
      	between types of state,ents but accept original definitions as a
      	parameter.
      	(ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
      	iterate over definitions.
      
      testsuite/
              * gcc.dg/ipa/ipa-sra-10.c: Nw test.
              * gcc.dg/torture/pr67794.c: Likewise.
      
      From-SVN: r228654
      Martin Jambor committed
    • rs6000.c (rs6000_offload_options): New. · 1a025b05
      	* config/rs6000/rs6000.c (rs6000_offload_options): New.
      	(TARGET_OFFLOAD_OPTIONS): New.
      
      From-SVN: r228653
      James Norris committed
    • [PR67891] don't test is_gimple_reg after parm expansion · 01a7166b
      for  gcc/ChangeLog
      
      	PR middle-end/67891
      	* cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
      
      From-SVN: r228652
      Alexandre Oliva committed
    • [PR67766] reorder handling of parallels, concats and promoted values in return · fc5851fe
      for  gcc/ChangeLog
      
      	PR middle-end/67766
      	* function.c (expand_function_end): Move return value
      	promotion past the handling of PARALLELs and CONCATs.
      
      From-SVN: r228651
      Alexandre Oliva committed
    • [PR67828] don't unswitch on default defs of non-parms · f813d16e
      for  gcc/ChangeLog
      
      	PR rtl-optimizatoin/67828
      	* tree-ssa-loop-unswitch.c: Include tree-ssa.h.
      	(tree_may_unswitch_on): Don't unswitch on expressions
      	involving undefined values.
      
      for  gcc/testsuite/ChangeLog
      
      	PR rtl-optimization/67828
      	* gcc.dg/torture/pr67828.c: New.
      
      From-SVN: r228650
      Alexandre Oliva committed
    • * MAINTAINERS (Write After Approval): Add myself. · 6be1d686
      From-SVN: r228649
      Martin Liska committed