1. 06 Oct, 2011 24 commits
  2. 05 Oct, 2011 16 commits
    • strlenopt-21.c (dg-options): Remove -fdump-tree-optimized. · 2e93eba9
      	* gcc.dg/strlenopt-21.c (dg-options): Remove -fdump-tree-optimized.
      	* gcc.dg/ipa/inline-5.c: Cleanup inline ipa dump.
      	* g++.dg/other/final1.C: Cleanup original tree dump.
      
      From-SVN: r179579
      Uros Bizjak committed
    • function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap if profiling after the prologue. · ee049cb7
      	* function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
      	if profiling after the prologue.
      
      From-SVN: r179577
      Bernd Schmidt committed
    • * ChangeLog: Update my previous entry. · 854f7cbe
      From-SVN: r179574
      Uros Bizjak committed
    • vect.exp (VEC_CFLAGS): Append "-fdump-tree-veclower2". · 3f7739ad
      	* gcc.dg/vect/vect.exp (VEC_CFLAGS): Append "-fdump-tree-veclower2".
      	* gcc.dg/vect/vec-scal-opt.c: Scan and cleanup veclower2 tree dump.
      	* gcc.dg/vect/vec-scal-opt1.c: Ditto.
      	* gcc.dg/vect/vec-scal-opt2.c: Ditto.
      
      From-SVN: r179573
      Uros Bizjak committed
    • re PR tree-optimization/50613 (ICE: tree check: expected ssa_name, have… · 97246d78
      re PR tree-optimization/50613 (ICE: tree check: expected ssa_name, have addr_expr in find_equal_ptrs, at tree-ssa-strlen.c:712 with -foptimize-strlen -fno-tree-ccp)
      
      	PR tree-optimization/50613
      	* tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
      	operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
      	and if it is neither that not SSA_NAME, give up.
      
      	* gcc.dg/pr50613.c: New test.
      
      From-SVN: r179567
      Jakub Jelinek committed
    • Fix vect-shuffle-* test cases. · 9974107a
      From-SVN: r179566
      Richard Henderson committed
    • vect.exp (VEC_CFLAGS): Move initialization after DEFAULT_VECTFLAGS initialization. · ed378230
      	* gcc.dg/vect/vect.exp (VEC_CFLAGS): Move initialization after
      	DEFAULT_VECTFLAGS initialization.
      
      From-SVN: r179565
      Uros Bizjak committed
    • i386: Rewrite ix86_expand_vshuffle. · dae00b16
      1: Handle TARGET_XOP.
      2: Reduce code duplication.
      3: Use ASHIFT instead of MULT for scaling.
      4: Fix errors in building convert-to-v16qi indicies.
      5: Handle v2di without sse4.1.
      
      From-SVN: r179564
      Richard Henderson committed
    • Fix lower_vec_shuffle. · 067f5960
      1: It can never fail.
      2: It should mask the input indicies.
      
      From-SVN: r179563
      Richard Henderson committed
    • i386.c (distance_non_agu_define): Simplify calculation of "found". · 9fff751c
      	* config/i386/i386.c (distance_non_agu_define): Simplify calculation
      	of "found".  Simplify return value calculation.
      	(distance_agu_use): Ditto.
      
      From-SVN: r179561
      Uros Bizjak committed
    • re PR bootstrap/50621 (Bootstrap failure) · 17a3dae3
      	PR bootstrap/50621
      	* config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
      	if the function was not shrink-wrapped.
      	(ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
      	to an insn.
      	* function.c (thread_prologue_and_epilogue_insns): Make sure the
      	shrink_wrapped flag is set even if there is no dump file.
      
      From-SVN: r179560
      Bernd Schmidt committed
    • rx.opt (mpid): Define. · 878a9174
      	* config/rx/rx.opt (mpid): Define.
      	* config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
      	(MULTILIB_DIRNAMES): Add pid.
      	* config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
      	(rx_num_interrupt_regs): New variable.
      	(rx_gp_base_regnum): New function.  Returns the number of the
      	small data area register.
      	(rx_pid_base_regnum): New function.  Returns the number of the pid
      	base register.
      	(rx_decl_for_addr): New function.  Returns the symbolic part of a
      	MEM.
      	(rx_pid_data_operand): New function.  Returns whether an object is
      	in the position independent data area.
      	(rx_legitimize_address): New function.  Puts undecided PID
      	objects in the PID data area.
      	(rx_is_legitimate_address): Add support for PID operands.
      	(rx_print_operand_address): Likewise.
      	(rx_print_operand): Likewise.
      	(rx_maybe_pidify_operand): New function.  Determine if an operand
      	is suitable for PID addressing.
      	(rx_gen_move_template): Add PID support.
      	(rx_conditional_register_usage): Likewise.
      	(rx_option_override): Initialise rx_num_interrupt_regs.
      	(rx_is_legitimate_constant): Add support for PID constants.
      	(TARGET_LEGITIMIZE_ADDRESS): Define.
      	* config/rx/constraints.md (Rpid): Define.
      	(Rpda): Define.
      	* config/rx/rx.md (UNSPEC_PID_ADDR): Define.
      	(tablejump): Add PID support.
      	(mov<>): Likewise.
      	(mov<>_internal): Likewise.
      	(addsi3): Convert to an expander.  Add PID support.
      	(pid_addr): New pattern.
      	* config/rx/rx.h (CPP_SPEC): Define.
      	(ASM_SPEC): Pass -mpid and -mint-register on to assembler.
      	(CASE_VECTOR_PC_RELATIVE): Define.
      	(JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
      	* config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
      	* doc/invoke.texi (RX Options): Document -mpid command line
      	option.
      
      Co-Authored-By: Nick Clifton <nickc@redhat.com>
      
      From-SVN: r179558
      DJ Delorie committed
    • re PR tree-optimization/38885 (missed FRE with BIT_FIELD_REF and vectors) · c867aba0
      2011-10-05  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/38885
      	* tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
      	from constants.
      
      	* gcc.dg/tree-ssa/ssa-fre-33.c: New testcase.
      
      From-SVN: r179556
      Richard Guenther committed
    • invoke.texi (-fshrink-wrap): Document. · 484db665
      	* doc/invoke.texi (-fshrink-wrap): Document.
      	* opts.c (default_options_table): Add it.
      	* common.opt (fshrink-wrap): Add.
      	* function.c (emit_return_into_block): Remove useless declaration.
      	(record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
      	requires_stack_frame_p, gen_return_pattern): New static functions.
      	(emit_return_into_block): New arg simple_p.  All callers changed.
      	Use gen_return_pattern.
      	(thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
      	* config/i386/i386.md (return): Expand into a simple_return.
      	(simple_return): New expander):
      	(simple_return_internal, simple_return_internal_long,
      	simple_return_pop_internal_long, simple_return_indirect_internal):
      	Renamed from return_internal, return_internal_long,
      	return_pop_internal_long and return_indirect_internal; changed to use
      	simple_return.
      	* config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
      	simple returns.
      	(ix86_pad_returns): Likewise.
      	* function.h (struct rtl_data): Add member shrink_wrapped.
      	* cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
      	are not jumps or sibcalls can't be compared.
      
      	* gcc.target/i386/sw-1.c: New test.
      
      From-SVN: r179553
      Bernd Schmidt committed
    • tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of vector type. · 18474649
      2011-10-05  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
      	vector type.
      	(simplify_unary_expression): Handle BIT_FIELD_REFs.
      	(try_to_simplify): Handle BIT_FIELD_REFs.
      
      From-SVN: r179549
      Richard Guenther committed
    • avx256-unaligned-load-3.c (dg-options): Add -mtune=generic. · 4c4973ab
      	* gcc.target/i386/avx256-unaligned-load-3.c (dg-options): Add
      	-mtune=generic.
      	* gcc.target/i386/avx256-unaligned-store-3.c (dg-options): Ditto.
      
      From-SVN: r179548
      Uros Bizjak committed