1. 31 Oct, 2013 30 commits
    • tuple (_Index_tuple, [...]): Move to <utility>. · 1b1bdc03
      	* include/std/tuple (_Index_tuple, _Build_index_tuple): Move to
      	<utility>.
      	* include/std/utility (integer_sequence, make_integer_sequence,
      	index_sequence, make_index_sequence, index_sequence_for): Define.
      	* doc/xml/manual/status_cxx2014.xml: Update.
      	* testsuite/20_util/integer_sequence/intseq.cc: New.
      	* testsuite/20_util/integer_sequence/requirements/typedefs.cc: New.
      
      From-SVN: r204275
      Jonathan Wakely committed
    • optabs.c (expand_vec_perm): Avoid vector mode punning SUBREGs in SET_DEST. · d8c84975
      	* optabs.c (expand_vec_perm): Avoid vector mode punning
      	SUBREGs in SET_DEST.
      	* expmed.c (store_bit_field_1): Likewise.
      	* config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
      	vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
      	vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
      	* config/i386/i386.c (ix86_expand_vector_move_misalign,
      	ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
      	ix86_expand_sse_unpack, ix86_expand_args_builtin,
      	ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
      	emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
      	expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
      	expand_vec_perm_vpshufb2_vpermq,
      	expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
      	expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
      	ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
      	(expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
      	than *d itself.
      
      From-SVN: r204274
      Jakub Jelinek committed
    • c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause with decl that is not pointer nor array. · 5a9785fb
      	* c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
      	with decl that is not pointer nor array.
      
      	* semantics.c (finish_omp_clauses): Diagnose aligned clause
      	with decl that is not pointer nor array nor reference to those.
      
      	* g++.dg/gomp/simd-1.C: New test.
      	* g++.dg/gomp/declare-simd-1.C (f32): Fix up aligned clause argument.
      	* g++.dg/gomp/declare-simd-2.C (fn13, fn14): Add new tests.
      	* gcc.dg/gomp/declare-simd-2.c (fn7, fn8, fn9, fn10, fn11): Likewise.
      	* c-c++-common/gomp/simd6.c: New test.
      
      From-SVN: r204273
      Jakub Jelinek committed
    • i386.c (ix86_expand_sse2_abs): Rename function arguments. · e5ccdfcd
      	* config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
      	Use gcc_unreachable for unhandled modes.  Do not check results of
      	expand_simple_binop.  If not expanded to target, move the result.
      
      From-SVN: r204271
      Uros Bizjak committed
    • configure.ac: Add header checks for fenv.h and complex.h. · 5e5f34bf
      2013-10-31  Steve Ellcey  <sellcey@mips.com>
      
      	* configure.ac: Add header checks for fenv.h and complex.h.
      	* configure: Regenerate.
      
      From-SVN: r204270
      Steve Ellcey committed
    • Add new nds32 port, including machine description, libgcc, and documentation. · 9304f876
      [gcc/ChangeLog]
      	* config.gcc (nds32*-*-*): Add nds32 target.
      	* config/nds32/nds32.c: New file.
      	* config/nds32/nds32.h: New file.
      	* config/nds32/nds32.md: New file.
      	* config/nds32/constants.md: New file.
      	* config/nds32/constraints.md: New file.
      	* config/nds32/iterators.md: New file.
      	* config/nds32/nds32-doubleword.md: New file.
      	* config/nds32/nds32-intrinsic.md: New file.
      	* config/nds32/nds32_intrinsic.h: New file.
      	* config/nds32/nds32-modes.def: New file.
      	* config/nds32/nds32-multiple.md: New file.
      	* config/nds32/nds32.opt: New file.
      	* config/nds32/nds32-opts.h: New file.
      	* config/nds32/nds32-protos.h: New file.
      	* config/nds32/nds32-peephole2.md: New file.
      	* config/nds32/pipelines.md: New file.
      	* config/nds32/predicates.md: New file.
      	* config/nds32/t-mlibs: New file.
      	* common/config/nds32: New directory and files.
      
      	* doc/invoke.texi (NDS32 options): Document nds32 specific options.
      	* doc/md.texi (NDS32 family): Document nds32 specific constraints.
      	* doc/install.texi (Cross-Compiler-Specific Options): Document
      	--with-nds32-lib for nds32 target.
      	* doc/extend.texi (Function Attributes, Target Builtins): Document
      	nds32 specific attributes.
      	
      [libgcc/ChangeLog]
      	* config.host (nds32*-elf*): Add nds32 target.
      	* config/nds32 : New directory and files.
      	
      [contrib/ChangeLog]
      	* config-list.mk (nds32le-elf, nds32be-elf): Add nds32 target.
      
      Co-Authored-By: Shiva Chen <shiva0217@gmail.com>
      
      From-SVN: r204269
      Chung-Ju Wu committed
    • lra-constraints (process_alt_operands): Use the result elimination register for… · 7214306b
      lra-constraints (process_alt_operands): Use the result elimination register for operand when matching constraints.
      
      2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* lra-constraints (process_alt_operands): Use the result
      	elimination register for operand when matching constraints.
      
      From-SVN: r204267
      Vladimir Makarov committed
    • semantics.c (cxx_eval_call_expression): Handle trivial value-initialization. · c1c2162e
      	* semantics.c (cxx_eval_call_expression): Handle trivial
      	value-initialization.
      	* typeck2.c (store_init_value): Call maybe_constant_init after
      	cxx_constant_value.
      
      From-SVN: r204266
      Jason Merrill committed
    • decl.c (cxx_maybe_build_cleanup): Always set LOOKUP_NONVIRTUAL. · b8aaa1a3
      	* decl.c (cxx_maybe_build_cleanup): Always set LOOKUP_NONVIRTUAL.
      	* decl2.c (build_cleanup): Just call cxx_maybe_build_cleanup.
      
      From-SVN: r204265
      Jason Merrill committed
    • re PR c++/58162 ([C++11] bogus error: use of deleted function 'constexpr A::A(const A&)') · 1c79ebd5
      	PR c++/58162
      	* parser.c (cp_parser_late_parse_one_default_arg): Set
      	TARGET_EXPR_DIRECT_INIT_P.
      
      From-SVN: r204263
      Jason Merrill committed
    • class.c (type_build_ctor_call): Return early in C++98 mode. · 83f31d8d
      	* class.c (type_build_ctor_call): Return early in C++98 mode.
      	(type_build_dtor_call): Likewise.
      
      From-SVN: r204262
      Jason Merrill committed
    • Implement C++14 digit separators. · 7057e645
      libcpp:
      
      2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
              Implement C++14 digit separators.
      	* include/cpplib.h (cpp_options): Add digit_separators flag.
      	* internal.h (DIGIT_SEP(c)): New macro.
      	* expr.c (cpp_classify_number): Check improper placement of digit sep;
      	(cpp_interpret_integer): Skip over digit separators.
      	* init.c (lang_flags): Add digit_separators flag; (lang_defaults): Add
      	digit separator flags per language; (cpp_set_lang): Set
      	digit_separators
      	* lex.c (lex_number): Add digits separator to allowable characters for
      	C++14.
      
      
      gcc/c-family:
      
      2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
              Implement C++14 digit separators.
      	* c-lex.c (interpret_float): Remove digit separators from scratch string
      	before building real literal.
      
      
      gcc/testsuite:
      
      2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
              Implement C++14 digit separators.
      	* g++.dg/cpp1y/digit-sep.C: New.
      	* g++.dg/cpp1y/digit-sep-neg.C: New.
      	* g++.dg/cpp1y/digit-sep-cxx11-neg.C: New.
      
      
      libstdc++-v3:
      
      2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
              Implement C++14 digit separators.
      	* include/include/bits/parse_numbers.h: Change struct _Digit<_Base, '`'>
      	to struct _Digit<_Base, '\''>.
      
      From-SVN: r204260
      Edward Smith-Rowland committed
    • * gcc.dg/vect/vect-align-3.c: New test. · b63cb153
      From-SVN: r204259
      Jakub Jelinek committed
    • tree-vrp.c (maybe_set_nonzero_bits): New function. · 1e99c6e0
      	* tree-vrp.c (maybe_set_nonzero_bits): New function.
      	(remove_range_assertions): Call it.
      
      From-SVN: r204258
      Jakub Jelinek committed
    • tree.c (tree_ctz): New function. · eae76e53
      	* tree.c (tree_ctz): New function.
      	* tree.h (tree_ctz): New prototype.
      	* tree-ssanames.h (get_range_info, get_nonzero_bits): Change
      	first argument from tree to const_tree.
      	* tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
      	* tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
      	* tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
      	static.
      	* expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
      	* tree-vect-loop.c (vect_analyze_loop_operations,
      	vect_transform_loop): Don't force scalar loop for bound just because
      	number of iterations is unknown, only do it if it is not known to be
      	a multiple of vectorization_factor.
      	* builtins.c (get_object_alignment_2): Use tree_ctz on offset.
      
      From-SVN: r204257
      Jakub Jelinek committed
    • gimple-pretty-print.c (dump_ssaname_info): Print newline also in case of VR_VARYING. · c853f62a
      	* gimple-pretty-print.c (dump_ssaname_info): Print newline also
      	in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
      	* tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
      	(set_nonzero_bits, get_nonzero_bits): New prototypes.
      	* tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
      	a default def isn't partially constant.
      	(ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
      	is known to be partially zero.
      	(evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
      	to see if a default def isn't partially constant.
      	* tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
      	creation of a range, if VR_RANGE, try to improve nonzero_bits from
      	the range.
      	(set_nonzero_bits, get_nonzero_bits): New functions.
      
      	* g++.dg/warn/pr33738.C (main): Initialize a2 again to make sure
      	we warn about it already during VRP1 pass.
      
      From-SVN: r204256
      Jakub Jelinek committed
    • tree-cfg.c (assert_unreachable_fallthru_edge_p): New function. · d8202b84
      	* tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
      	* tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
      	* tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
      	(remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
      	uses but in the condition and ASSERT_EXPR and the other successor of
      	the predecessor bb is __builtin_unreachable (), set_range_info of the
      	ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
      
      From-SVN: r204255
      Jakub Jelinek committed
    • re PR rtl-optimization/58934 (build fails on cris-elf in… · b319f79c
      re PR rtl-optimization/58934 (build fails on cris-elf in reload_cse_simplify_operands for newlib dtoa.c)
      
      2013-10-31  Martin Jambor  <mjambor@suse.cz>
      
      	PR rtl-optimization/58934
      	Revert:
      	2013-10-30  Martin Jambor  <mjambor@suse.cz>
      	PR rtl-optimization/10474
      	* ira.c (find_moveable_pseudos): Do not calculate dominance info
      	nor df analysis.
      	(interesting_dest_for_shprep): New function.
      	(split_live_ranges_for_shrink_wrap): Likewise.
      	(ira): Calculate dominance info and df analysis. Call
      	split_live_ranges_for_shrink_wrap.
      
      testsuite/
      	* gcc.dg/pr10474.c: New testcase.
      	* gcc.dg/ira-shrinkwrap-prep-1.c: Likewise.
      	* gcc.dg/ira-shrinkwrap-prep-2.c: Likewise.
      
      From-SVN: r204254
      Martin Jambor committed
    • 48631_neg.cc: Tweak dg-prune. · 0a466ec0
      2013-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/20_util/default_delete/48631_neg.cc: Tweak dg-prune.
      
      From-SVN: r204253
      Paolo Carlini committed
    • re PR c++/58932 ([C++11] Deleted functions and SFINAE in partial template specializations) · 7f1001af
      /cp
      2013-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58932
      	Revert:
      	2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58466
      	* pt.c (most_specialized_class): Bump processing_template_decl for
      	get_class_bindings.
      
      /testsuite
      2013-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58932
      	Revert:
      	2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58466
      	* g++.dg/cpp0x/variadic145.C: New.
      
      	* g++.dg/cpp0x/sfinae49.C: New.
      
      From-SVN: r204252
      Paolo Carlini committed
    • re PR sanitizer/58543 (Invalid unpoisoning of stack redzones on ARM) · 57d4d653
      2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
      	    Yury Gribov  <y.gribov@samsung.com>
      
      	PR sanitizer/58543
      	* asan.c (asan_clear_shadow): Allocate a new vreg for temporary
      	shadow pointer to avoid clobbering the main one.
      
      Co-Authored-By: Yury Gribov <y.gribov@samsung.com>
      
      From-SVN: r204251
      Richard Sandiford committed
    • re PR c++/58932 ([C++11] Deleted functions and SFINAE in partial template specializations) · 7dccc537
      /cp
      2013-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58932
      	Revert:
      	2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58466
      	* pt.c (most_specialized_class): Bump processing_template_decl for
      	get_class_bindings.
      
      /testsuite
      2013-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58932
      	Revert:
      	2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58466
      	* g++.dg/cpp0x/variadic145.C: New.
      
      	* g++.dg/cpp0x/sfinae49.C: New.
      
      From-SVN: r204250
      Paolo Carlini committed
    • re PR c++/58581 ([c++11] ICE with no-throw specification in deleted function) · 39344c99
      /cp
      2013-10-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58581
      	* call.c (build_over_call): Check return value of mark_used.
      
      /testsuite
      2013-10-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58581
      	* g++.dg/cpp0x/deleted1.C: New.
      
      From-SVN: r204249
      Paolo Carlini committed
    • lower-subreg.c (resolve_simple_move): Copy REG_INC note. · ce5d49a8
      gcc/ChangeLog:
      2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
      
      	* lower-subreg.c (resolve_simple_move): Copy REG_INC note.
      
      gcc/testsuite/ChangeLog:
      2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
      
      	* gcc.target/arm/lp1243022.c: New test.
      
      From-SVN: r204247
      Zhenqiang Chen committed
    • configure.ac: Changed a case statement to include i386. · 8c1a9d4d
      2013-10-30  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      
             * configure.ac: Changed a case statement to include i386.
             * configure: Regenerated.
      
      From-SVN: r204246
      Balaji V. Iyer committed
    • re PR bootstrap/58933 (IRA ICE in update_costs_from_allocno) · c73ccc80
      2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR bootstrap/58933
      	* ira-color.c (update_costs_from_copies): Add new parameter.  Use
      	it for calling update_costs_from_allocno.
      	(assign_hard_reg): Call restore_costs_from_copies only for
      	!retry_p.  Pass new argument to update_costs_from_copies.
      	(color_pass): Pass new argument to update_costs_from_copies.
      	(ira_mark_allocation_change): Ditto.
      
      From-SVN: r204245
      Vladimir Makarov committed
    • re PR middle-end/58134 (-ftree-vectorizer-verbose=<n> shows vectorized loops… · 477e804b
      re PR middle-end/58134 (-ftree-vectorizer-verbose=<n> shows vectorized loops only for N== 1 and N >2 but not for N==2)
      
      2013-10-30  Sharad Singhai  <singhai@google.com>
      
      	PR middle-end/58134
      	* opts.c (common_handle_option): Remove deprecated option
      	-ftree-vectorizer-verbose.
      	* doc/invoke.texi (Debugging Options): Ditto.
      	* opts-global.c (handle_common_deferred_options): Ditto.
      	(dump_remap_tree_vectorizer_verbose): Delete.
      	* common.opt: Set -ftree-vectorizer-verbose as an ignored option.
      
      ada/ChangeLog
      	* gnat_ugn.texi: Remove option description for PR middle-end/58134.
      
      From-SVN: r204244
      Sharad Singhai committed
    • rx.c (ADD_RX_BUILTIN0): New macro, used for builtins that take no arguments. · 4bbd2ea8
      * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
      that take no arguments.
      
      From-SVN: r204239
      DJ Delorie committed
    • Daily bump. · d36ff35b
      From-SVN: r204238
      GCC Administrator committed
  2. 30 Oct, 2013 10 commits