1. 13 May, 2013 15 commits
    • compare_tests: Limit lines to 2000 characters as comm on Mac OS X 10.8.3 doesn't like long... · aa7e6aad
      	* compare_tests: Limit lines to 2000 characters as comm on Mac OS
      	X 10.8.3 doesn't like long lines (those 2055 characters or more).
      
      From-SVN: r198840
      Mike Stump committed
    • re PR target/57264 (cld not emitted when string instructions used, and '-mcld' on command line) · 40042849
      	PR target/57264
      	* gcc.target/i386/pr57264.c: New test.
      
      From-SVN: r198839
      Uros Bizjak committed
    • * gcc.dg/vector-shift-2.c: Add -O to dg-options. · 4264bfaa
      From-SVN: r198836
      Jakub Jelinek committed
    • forwprop-26.c: Add -fno-short-enums to dg-options. · f825efaa
      gcc/testsuite 
      
      2013-05-13  Greta Yorsh  <Greta.Yorsh@arm.com>
      
      	* gcc.dg/tree-ssa/forwprop-26.c: Add -fno-short-enums
      	to dg-options.
      
      From-SVN: r198832
      Greta Yorsh committed
    • aarch64-simd.md (aarch64_simd_mov<mode>): Group similar switch cases. · c59b7e28
      	* config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
      	similar switch cases.
      	(aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
      	(aarch64_simd_mov_to_<mode>low): Delete.
      	(aarch64_simd_mov_to_<mode>high): Delete.
      	(move_lo_quad_<mode>): Add w<-r alternative.
      	(aarch64_simd_move_hi_quad_<mode>): Likewise.
          (aarch64_simd_mov_from_*): Update type attribute.
      	* config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
      	statement.
      
      From-SVN: r198831
      Sofiane Naci committed
    • mode-switching.c (optimize_mode_switching): Set correct RTL profile. · 5f28524a
      	* mode-switching.c (optimize_mode_switching): Set correct RTL profile.
      	* config/i386/i386.c (ix86_compute_frame_layout,
      	ix86_expand_epilogue, emit_i387_cw_initialization, ix86_expand_vector_move_misalign,
      	ix86_fp_comparison_strategy, ix86_local_alignment): Fix use of size/speed predicates.
      
      From-SVN: r198825
      Jan Hubicka committed
    • Restore Solaris/amd64 Ada bootstrap (PR ada/57188) · a164a17b
      	PR ada/57188
      	* gcc-interface/Makefile.in: Allow for amd64 solaris2.
      
      From-SVN: r198824
      Rainer Orth committed
    • re PR tree-optimization/45216 (Rotate expressions not recognized at tree level) · ae6fa899
      	PR tree-optimization/45216
      	PR tree-optimization/57157
      	* tree-ssa-forwprop.c (simplify_rotate): Only recognize
      	the (-Y) & (B - 1) variant if OP is |.
      	* expmed.c (expand_shift_1): For rotations by const0_rtx just
      	return shifted.  Use (-op1) & (prec - 1) as other_amount
      	instead of prec - op1.
      
      	* c-c++-common/rotate-1.c: Add 32 tests with +.
      	* c-c++-common/rotate-1a.c: Adjust.
      	* c-c++-common/rotate-2.c: Add 32 tests with +, expect
      	only 48 rotates.
      	* c-c++-common/rotate-2b.c: New test.
      	* c-c++-common/rotate-3.c: Add 32 tests with +.
      	* c-c++-common/rotate-4.c: Add 32 tests with +, expect
      	only 48 rotates.
      	* c-c++-common/rotate-4b.c: New test.
      	* c-c++-common/rotate-5.c: New test.
      
      From-SVN: r198823
      Jakub Jelinek committed
    • re PR middle-end/42371 (dead code not eliminated during folding with whole-program) · 4502fe8d
      2013-05-13  Martin Jambor  <mjambor@suse.cz>
      
      	PR middle-end/42371
      	* ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
      	(ipa_constant_data): New type.
      	(ipa_jump_func): Use ipa_constant_data to hold information about
      	constant jump functions.
      	(ipa_get_jf_constant): Adjust to jump function type changes.
      	(ipa_get_jf_constant_rdesc): New function.
      	(ipa_param_descriptor): New field controlled_uses.
      	(ipa_get_controlled_uses): New function.
      	(ipa_set_controlled_uses): Likewise.
      	* ipa-ref.h (ipa_find_reference): Declare.
      	* ipa-prop.c (ipa_cst_ref_desc): New type.
      	(ipa_print_node_jump_functions_for_edge): Adjust for jump function type
      	changes.
      	(ipa_set_jf_constant): Likewise.  Also create reference descriptions.
      	New parameter cs.  Adjust all callers.
      	(ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
      	(remove_described_reference): New function.
      	(jfunc_rdesc_usable): Likewise.
      	(try_make_edge_direct_simple_call): Decrement controlled use count,
      	attempt to remove reference if it hits zero.
      	(combine_controlled_uses_counters): New function.
      	(propagate_controlled_uses): Likewise.
      	(ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
      	(ipa_edge_duplication_hook): Duplicate reference descriptions.
      	(ipa_print_node_params): Print described use counter.
      	(ipa_write_jump_function): Adjust to jump function type changes.
      	(ipa_read_jump_function): New parameter CS, pass it to
      	ipa_set_jf_constant.  Adjust caller.
      	(ipa_write_node_info): Stream controlled use count
      	(ipa_read_node_info): Likewise.
      	* cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
      	asserting.
      	* ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
      	count.  Remove cloning-added reference if it reaches zero.
      	* ipa-ref.c (ipa_find_reference): New function.
      
      testsuite/
      	* gcc.dg/ipa/remref-0.c: New test.
      	* gcc.dg/ipa/remref-1a.c: Likewise.
      	* gcc.dg/ipa/remref-1b.c: Likewise.
      	* gcc.dg/ipa/remref-2a.c: Likewise.
      	* gcc.dg/ipa/remref-2b.c: Likewise.
      
      From-SVN: r198821
      Martin Jambor committed
    • AMD specific default alignment changes · 0864bfc2
      From-SVN: r198820
      Ganesh Gopalasubramanian committed
    • tree-vect-generic.c (uniform_vector_p): Move ... · 640bfeb2
      2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
      
      gcc/
      	* tree-vect-generic.c (uniform_vector_p): Move ...
      	* tree.c (uniform_vector_p): ... here.
      	* tree.h (uniform_vector_p): Declare it.
      	* fold-const.c (fold_binary_loc) <shift>: Turn the second argument
      	into a scalar.
      
      gcc/testsuite/
      	* gcc.dg/vector-shift-2.c: New testcase.
      
      From-SVN: r198819
      Marc Glisse committed
    • re PR tree-optimization/57230 (tree-ssa-strlen incorrectly optimizes a strlen to 0) · 198fe1bf
      	PR tree-optimization/57230
      	* tree-ssa-strlen.c (handle_char_store): Record length for
      	array store from STRING_CST.
      
      	* gcc.dg/strlenopt-24.c: New test.
      
      From-SVN: r198815
      Jakub Jelinek committed
    • re PR tree-optimization/57230 (tree-ssa-strlen incorrectly optimizes a strlen to 0) · 3a60f32b
      	PR tree-optimization/57230
      	* tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
      	check.
      
      	* gcc.dg/strlenopt-23.c: New test.
      
      From-SVN: r198813
      Jakub Jelinek committed
    • Fix EH handling issue in last change: · 2710a27a
              * config/epiphany/epiphany.c (epiphany_init): Check size of
              NUM_MODES_FOR_MODE_SWITCHING.
              (epiphany_expand_prologue):
              Remove CONFIG_REGNUM initial value handling code.
              (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
              (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
              (emit_set_fp_mode, epiphany_mode_after): Likewise.
              (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
              Don't return 1 for FP_MODE_NONE.
              * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
              Add value for EPIPHANY_MSW_ENTITY_CONFIG.
              (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
              * config/epiphany/epiphany.md (save_config): New pattern.
      
      From-SVN: r198811
      Joern Rennecke committed
    • Daily bump. · 350bfa8f
      From-SVN: r198810
      GCC Administrator committed
  2. 12 May, 2013 5 commits
  3. 11 May, 2013 1 commit
  4. 10 May, 2013 19 commits
    • i386.md (memory): Handle sseishft1. · 5b3f93c7
      	* config/i386/i386.md (memory): Handle sseishft1.
      	* config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
      	(*vec_extractv2di_1): Ditto.
      
      From-SVN: r198795
      Uros Bizjak committed
    • lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call saved registers. · 1f873f0e
      2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
      	saved registers.
      
      From-SVN: r198792
      Vladimir Makarov committed
    • re PR libstdc++/54577 (deque<T>::erase() still takes iterator instead of const_iterator) · 94938aec
      2013-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/54577
      	* include/bits/stl_deque.h (erase): Fix signatures in C++11 mode.
      	(_Deque_iterator<>::_M_const_cast): Add.
      	(deque<>::_M_erase): Declare.
      	* include/bits/deque.tcc: ... and define.
      	* include/bits/stl_list.h (erase): Fix signatures in C++11 mode.
      	(_List_const_iterator<>::_M_const_cast): Add.
      	* include/bits/list.tcc (erase (iterator)): Fix.
      	* include/bits/stl_iterator.h (__normal_iterator<>::_M_const_cast):
      	Add; include <ext/cast.h>.
      	* include/bits/stl_vector.h (erase): Fix signatures in C++11 mode.
      	(vector<>::_M_erase): Declare.
      	* include/bits/stl_bvector.h: Likewise.
      	* include/bits/vector.tcc (vector<>::_M_erase): Define.
      	* include/ext/vstring.h (erase): Fix signatures in C++11 mode.
      	* include/debug/deque: Adjust.
      	* include/debug/list: Likewise.
      	* include/debug/vector: Likewise.
      	* include/profile/deque: Likewise.
      	* include/profile/list: Likewise.
      	* include/profile/vector: Likewise.
      	* testsuite/util/exception/safety.h (erase_base<deque>,
      	erase_base<deque>, erase_base<vector>): Remove.
      	(erase_base<__versa_string>): Update.
      	* testsuite/ext/vstring/modifiers/char/54577.cc: New.
      	* testsuite/ext/vstring/modifiers/wchar_t/54577.cc: Likewise.
      	* testsuite/23_containers/deque/modifiers/erase/54577.cc: Likewise.
      	* testsuite/23_containers/list/modifiers/erase/54577.cc: Likewise.
      	* testsuite/23_containers/vector/bool/modifiers/erase/54577.cc:
      	Likewise.
      	* testsuite/23_containers/vector/modifiers/erase/54577.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
      	Adjust dg-error line numbers.
      	* testsuite/23_containers/deque/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
      	Likewise.
      	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
      	Likewise.
      	* testsuite/23_containers/list/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/
      	insert_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
      	Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
      	Likewise.
      
      From-SVN: r198790
      Paolo Carlini committed
    • Fix spacing · 341427fa
      From-SVN: r198789
      Joel Sherrill committed
    • t-rtems-eabi: Remove mthumb/march=armv7 multilib. · d7de6455
      2013-05-10  Sebastian Huber <sebastian.huber@embedded-brains.de>
      
      	* config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
      	Add mthumb/march=armv7-a multilib.
      	Add mthumb/march=armv7-r multilib.
      	Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
      
      From-SVN: r198784
      Sebastian Huber committed
    • t-rtems: Add more multilibs. · 9e69bdde
      2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
      
      	* config/v850/t-rtems: Add more multilibs.
      
      From-SVN: r198781
      Ralf Corsepius committed
    • re PR c++/57196 (Bogus "aggregate ... has incomplete type and cannot be defined") · 4ed024b6
      	PR c++/57196
      	* pt.c (convert_template_argument): Use dependent_template_arg_p,
      	not uses_template_parms.
      
      From-SVN: r198778
      Jason Merrill committed
    • re PR c++/57047 ([C++11] stl_pair.h:137:64: internal compiler error:… · 616eece3
      re PR c++/57047 ([C++11] stl_pair.h:137:64: internal compiler error: Segmentation fault in constexpr constructor)
      
      	PR c++/57047
      	* semantics.c (cxx_fold_indirect_ref): Fix thinko.
      
      From-SVN: r198777
      Jason Merrill committed
    • re PR c++/55149 (capturing VLA in lambda) · 5ced939e
      	PR c++/55149
      	* semantics.c (add_capture): Error rather than abort on copy
      	capture of VLA.
      	* typeck.c (maybe_warn_about_returning_address_of_local): Don't
      	warn about capture proxy.
      
      From-SVN: r198776
      Jason Merrill committed
    • Fix changelog entry · 29554d29
      From-SVN: r198775
      Richard Biener committed
    • re PR tree-optimization/57214 (ice: tree check: expected ssa_name, have… · 9ff09a22
      re PR tree-optimization/57214 (ice: tree check: expected ssa_name, have integer_cst in coalesce_partitions, at tree-ssa-coalesce.c:1194)
      
      2013-05-10  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/57214
      	* tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
      	not propagate from SSA names that occur in abnormal PHI nodes.
      
      From-SVN: r198773
      Richard Biener committed
    • stor-layout.c (element_precision): New function. · a5e0cd1d
      2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
      
      gcc/
      	* stor-layout.c (element_precision): New function.
      	* machmode.h (element_precision): Declare it.
      	* tree.c (build_minus_one_cst): New function.
      	(element_precision): Likewise.
      	* tree.h (build_minus_one_cst): Declare new function.
      	(element_precision): Likewise.
      	* fold-const.c (operand_equal_p): Use element_precision.
      	(fold_binary_loc): Handle vector types.
      	* convert.c (convert_to_integer): Use element_precision.
      	* gimple.c (iterative_hash_canonical_type): Handle complex and vectors
      	separately.
      
      gcc/c-family/
      	* c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
      	vectors.
      
      gcc/testsuite/
      	* gcc.dg/vector-shift.c: New testcase.
      
      From-SVN: r198772
      Marc Glisse committed
    • gcc/ · cb2558bc
      	* config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
      	(m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
      	(m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
      	(m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
      	* config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
      	(m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
      	(m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
      	(m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
      	* config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
      	(Uuw8): New constraints.
      	(Usb4): Move into alphabetical order.
      	* config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
      	(sd8_operand, ub8_operand, uw8_operand): New predicates.
      	* config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
      	previously unnamed patterns.
      	(*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
      	(*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
      	(*slt<u>_<GPR:mode><GPR2:mode>_mips16)
      	(*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
      	of set_attr_alternative/if_then_else.  Use extended_mips16 instead
      	of specific lengths.
      
      From-SVN: r198771
      Richard Sandiford committed
    • i386.md (rotateinv): New code attr. · 6f93c008
      	* config/i386/i386.md (rotateinv): New code attr.
      	(*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
      	*<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
      	roll $31, %eax, etc.
      
      	* gcc.target/i386/rotate-1.c: Accept rolb or rorb instruction.
      
      From-SVN: r198770
      Jakub Jelinek committed
    • re PR tree-optimization/45216 (Rotate expressions not recognized at tree level) · cb3b8d33
      	PR tree-optimization/45216
      	PR tree-optimization/57157
      	* tree-ssa-forwprop.c (simplify_rotate): New function.
      	(ssa_forward_propagate_and_combine): Call it.
      
      	* c-c++-common/rotate-1.c: New test.
      	* c-c++-common/rotate-1a.c: New test.
      	* c-c++-common/rotate-2.c: New test.
      	* c-c++-common/rotate-2a.c: New test.
      	* c-c++-common/rotate-3.c: New test.
      	* c-c++-common/rotate-3a.c: New test.
      	* c-c++-common/rotate-4.c: New test.
      	* c-c++-common/rotate-4a.c: New test.
      
      From-SVN: r198769
      Jakub Jelinek committed
    • testsuite_abi.cc (check_version): Add CXXABI_1.3.8. · fb7f649d
      	* testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.8.
      
      From-SVN: r198768
      Uros Bizjak committed
    • tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not disable peeling… · afb119be
      tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not disable peeling when we version for aliasing.
      
      2013-05-10  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
      	disable peeling when we version for aliasing.
      	(vector_alignment_reachable_p): Honor explicit user alignment.
      	(vect_supportable_dr_alignment): Likewise.
      	* tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
      	STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
      	* tree-vect-loop.c (vect_transform_loop): First apply versioning,
      	then peeling to arrange for the cost-model check to come first.
      
      	* gcc.target/i386/avx256-unaligned-load-2.c: Make well-defined.
      	* gcc.target/i386/l_fma_double_1.c: Adjust.
      	* gcc.target/i386/l_fma_double_2.c: Likewise.
      	* gcc.target/i386/l_fma_double_3.c: Likewise.
      	* gcc.target/i386/l_fma_double_4.c: Likewise.
      	* gcc.target/i386/l_fma_double_5.c: Likewise.
      	* gcc.target/i386/l_fma_double_6.c: Likewise.
      	* gcc.target/i386/l_fma_float_1.c: Likewise.
      	* gcc.target/i386/l_fma_float_2.c: Likewise.
      	* gcc.target/i386/l_fma_float_3.c: Likewise.
      	* gcc.target/i386/l_fma_float_4.c: Likewise.
      	* gcc.target/i386/l_fma_float_5.c: Likewise.
      	* gcc.target/i386/l_fma_float_6.c: Likewise.
      
      From-SVN: r198767
      Richard Biener committed
    • configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases. · 01ae4861
      	* configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
      	(HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
      	* configure: Regenerate.
      
      From-SVN: r198766
      Alan Modra committed
    • re PR target/55033 (PowerPC section type conflict error) · ebc9a431
      	PR target/55033
      	* varasm.c (default_elf_select_section): Move !DECL_P check..
      	(get_named_section): ..to here before calling get_section_name.
      	Adjust assertion.
      	(default_section_type_flags): Add DECL_P check.
      	* config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
      	* config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
      
      From-SVN: r198762
      Alan Modra committed