1. 27 Jan, 2014 2 commits
  2. 26 Jan, 2014 8 commits
  3. 25 Jan, 2014 20 commits
    • Fix pilot error in previous checkin · 5011ff86
      From-SVN: r207098
      Eric Botcazou committed
    • atomic.c: Include tconfig.h. · a5420aa4
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilepro/atomic.c: Include tconfig.h.  Don't include
                  config.h or system.h.
                  (bool) Define.
      
      From-SVN: r207088
      Walter Lee committed
    • atomic.c (pre_atomic_barrier): Mark inline. · 24534912
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilepro/atomic.c (pre_atomic_barrier): Mark inline.
                  (post_atomic_barrier): Ditto.
                  (__fetch_and_do): New macro.
                  (__atomic_fetch_and_do): Use __fetch_and_do.
                  (__sync_fetch_and_do): New macro.
                  (__sync_fetch_and_add_4): New function.
                  (__sync_fetch_and_sub_4): New function.
                  (__sync_fetch_and_or_4): New function.
                  (__sync_fetch_and_and_4): New function.
                  (__sync_fetch_and_xor_4): New function.
                  (__sync_fetch_and_nand_4): New function.
                  (__sync_fetch_and_add_8): New function.
                  (__sync_fetch_and_sub_8): New function.
                  (__sync_fetch_and_or_8): New function.
                  (__sync_fetch_and_and_8): New function.
                  (__sync_fetch_and_xor_8): New function.
                  (__sync_fetch_and_nand_8): New function.
                  (__do_and_fetch): New macro.
                  (__atomic_do_and_fetch): Use __do_and_fetch.
                  (__sync_do_and_fetch): New macro.
                  (__sync_add_and_fetch_4): New function.
                  (__sync_sub_and_fetch_4): New function.
                  (__sync_or_and_fetch_4): New function.
                  (__sync_and_and_fetch_4): New function.
                  (__sync_xor_and_fetch_4): New function.
                  (__sync_nand_and_fetch_4): New function.
                  (__sync_add_and_fetch_8): New function.
                  (__sync_sub_and_fetch_8): New function.
                  (__sync_or_and_fetch_8): New function.
                  (__sync_and_and_fetch_8): New function.
                  (__sync_xor_and_fetch_8): New function.
                  (__sync_nand_and_fetch_8): New function.
                  (__sync_exchange_methods): New macro.
                  (__sync_val_compare_and_swap_4): New function.
                  (__sync_bool_compare_and_swap_4): New function.
                  (__sync_lock_test_and_test_4): New function.
                  (__sync_val_compare_and_swap_8): New function.
                  (__sync_bool_compare_and_swap_8): New function.
                  (__sync_lock_test_and_test_8): New function.
                  (__subword_cmpxchg_body): New macro.
                  (__atomic_compare_exchange_1): Use __subword_cmpxchg_body.
                  (__atomic_compare_exchange_2): Ditto.
                  (__sync_subword_cmpxchg): New macro.
                  (__sync_val_compare_and_swap_1): New function.
                  (__sync_bool_compare_and_swap_1): New function.
                  (__sync_val_compare_and_swap_2): New function.
                  (__sync_bool_compare_and_swap_2): New function.
                  (__atomic_subword): Rename to ...
                  (__subword): ... New name.
                  (__atomic_subword_fetch): Use __subword.
                  (__sync_subword_fetch): New macro.
                  (__sync_fetch_and_add_1): New function.
                  (__sync_fetch_and_sub_1): New function.
                  (__sync_fetch_and_or_1): New function.
                  (__sync_fetch_and_and_1): New function.
                  (__sync_fetch_and_xor_1): New function.
                  (__sync_fetch_and_nand_1): New function.
                  (__sync_fetch_and_add_2): New function.
                  (__sync_fetch_and_sub_2): New function.
                  (__sync_fetch_and_or_2): New function.
                  (__sync_fetch_and_and_2): New function.
                  (__sync_fetch_and_xor_2): New function.
                  (__sync_fetch_and_nand_2): New function.
                  (__sync_add_and_fetch_1): New function.
                  (__sync_sub_and_fetch_1): New function.
                  (__sync_or_and_fetch_1): New function.
                  (__sync_and_and_fetch_1): New function.
                  (__sync_xor_and_fetch_1): New function.
                  (__sync_nand_and_fetch_1): New function.
                  (__sync_add_and_fetch_2): New function.
                  (__sync_sub_and_fetch_2): New function.
                  (__sync_or_and_fetch_2): New function.
                  (__sync_and_and_fetch_2): New function.
                  (__sync_xor_and_fetch_2): New function.
                  (__sync_nand_and_fetch_2): New function.
                  (__atomic_subword_lock): Use __subword.
                  (__sync_subword_lock): New macro.
                  (__sync_lock_test_and_set_1): New function.
                  (__sync_lock_test_and_set_2): New function.
      
      From-SVN: r207087
      Walter Lee committed
    • atomic.c (BIT_OFFSET): Define. · 4d6d3bc5
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilepro/atomic.c (BIT_OFFSET): Define.
                  (__atomic_subword_cmpxchg): Use BIT_OFFSET.
                  (__atomic_subword): Ditto.
      
      From-SVN: r207086
      Walter Lee committed
    • atomic.c (__atomic_do_and_fetch): Add a prefix op argument. · cbd9890e
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilepro/atomic.c (__atomic_do_and_fetch): Add a
                  prefix op argument.
                  (__atomic_nand_fetch_4): Add prefix op.
                  (__atomic_nand_fetch_8): Ditto.
      
      From-SVN: r207085
      Walter Lee committed
    • sync.md (atomic_fetch_sub): Fix negation and avoid clobbering a live register. · 6bb0e248
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
                  avoid clobbering a live register.
      
      From-SVN: r207084
      Walter Lee committed
    • tilegx-c.c (tilegx_cpu_cpp_builtins): Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}. · dab03fe3
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins): 
                  Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
                  * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins): 
                  Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
      
      From-SVN: r207083
      Walter Lee committed
    • tilegx.c (tilegx_function_arg): Start 16-byte arguments on even registers. · 905c20c1
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
                  arguments on even registers.
                  (tilegx_function_arg_advance): Ditto.
                  (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
                  STACK_BOUNDARY.
                  * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
                  (BIGGEST_ALIGNMENT): Ditto.
                  (BIGGEST_FIELD_ALIGNMENT): Ditto.
      
      From-SVN: r207082
      Walter Lee committed
    • tilegx.c (tilegx_gen_bundles): Delete barrier insns after bundles have been formed. · 8e90a625
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
                  insns after bundles have been formed.
                  * config/tilegx/tilegx.md (tile_network_barrier): Update
                  comment.
      
      From-SVN: r207081
      Walter Lee committed
    • tilegx.c (tilegx_expand_builtin): Set PREFETCH_SCHEDULE_BARRIER_P to true for prefetches. · 450c1ffe
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
                  PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
                  * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
      
      From-SVN: r207080
      Walter Lee committed
    • constraints.md (kl): Delete. · 317a951f
      gcc/
      	* config/mips/constraints.md (kl): Delete.
      	* config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
      	define expands, using...
      	(divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
      	instructions for MIPS16.
      	(*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
      	non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
      
      From-SVN: r207079
      Richard Sandiford committed
    • tilepro.md (ctzdi2): Use register_operand predicate. · 3abe9053
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilepro/tilepro.md (ctzdi2): Use register_operand
                  predicate.
                  (clzdi2): Ditto.
                  (ffsdi2): Ditto.
      
      From-SVN: r207078
      Walter Lee committed
    • tilegx.c (tilegx_expand_to_rtl_hook): New. · b0e0fe41
      2014-01-25  Walter Lee  <walt@tilera.com>
      
                  * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
                  (TARGET_EXPAND_TO_RTL_HOOK): Define.
      
      From-SVN: r207077
      Walter Lee committed
    • rtlanal.c (canonicalize_condition): Split out duplicated mode check. · 2c8798a2
      gcc/
      	* rtlanal.c (canonicalize_condition): Split out duplicated mode check.
      	Handle XOR.
      
      gcc/testsuite/
      	* gcc.dg/unroll_1.c: Add -fenable-rtl-loop2.
      
      From-SVN: r207076
      Richard Sandiford committed
    • vect-nop-move.c (main): Check for vect runtime. · 746cd719
      2014-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * gcc.dg/vect/vect-nop-move.c (main): Check for vect runtime.
      
      From-SVN: r207075
      Bernd Edlinger committed
    • * gcc-interface/Makefile.in: Fix oversight. · 54dce195
      From-SVN: r207074
      Eric Botcazou committed
    • utils.c (convert_to_fat_pointer): Un-obfuscate the conversion from a thin… · 88293f03
      utils.c (convert_to_fat_pointer): Un-obfuscate the conversion from a thin pointer with a shifted value.
      
      	* gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
      	conversion from a thin pointer with a shifted value.
      	* gcc-interface/utils2.c (gnat_build_constructor): Propagate the
      	read-only flag from the values onto the result.
      	(gnat_invariant_expr): Accept read-only CONSTRUCTORs.
      
      From-SVN: r207073
      Eric Botcazou committed
    • decl.c (gnat_to_gnu_entity): Always build a variable for E_Variable with a pragma Linker_Section. · ae56e442
      	* gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
      	for E_Variable with a pragma Linker_Section.
      
      From-SVN: r207072
      Tristan Gingold committed
    • decl.c (gnat_to_gnu_param): Make sure an Out parameter with Default_Value aspect… · 3a70ba74
      decl.c (gnat_to_gnu_param): Make sure an Out parameter with Default_Value aspect is passed in by copy.
      
      	* gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
      	with Default_Value aspect is passed in by copy.
      
      From-SVN: r207071
      Robert Dewar committed
    • Daily bump. · 0c9d009c
      From-SVN: r207069
      GCC Administrator committed
  4. 24 Jan, 2014 10 commits
    • print-rtl.c (in_call_function_usage): New var. · 4def6060
      	* print-rtl.c (in_call_function_usage): New var.
      	(print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
      	EXPR_LIST mode as mode and not as reg note name.
      
      From-SVN: r207066
      Jakub Jelinek committed
    • re PR middle-end/59561 (warning: iteration 4 invokes undefined behavior) · 2105be5a
      	PR middle-end/59561
      	* cfgloopmanip.c (copy_loop_info): If
      	loop->warned_aggressive_loop_optimizations, make sure
      	the flag is set in target loop too.
      
      From-SVN: r207065
      Jakub Jelinek committed
    • Replace flag_enable_cilkplus with flag_cilkplus. · b72271b9
      gcc/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
      +       flag_cilkplus.
      +       * builtins.def: Likewise.
      +       * cilk.h (fn_contains_cilk_spawn_p): Likewise.
      +       * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
      +       * ira.c (ira_setup_eliminable_regset): Likewise.
      +       * omp-low.c (gate_expand_omp): Likewise.
      +       (execute_lower_omp): Likewise.
      +       (diagnose_sb_0): Likewise.
      +       (gate_diagnose_omp_blocks): Likewise.
      +       (simd_clone_clauses_extract): Likewise.
      +       (gate): Likewise.
      +
      
      gcc/c-family/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
      +       flag_cilkplus.
      +       * c-pragma.c (init_pragma): Likewise.
      +       * c.opt: Likewise.
      +
      
      gcc/c/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * c-parser.c (c_parser_declaration_or_fndef): Replaced
      +       flag_enable_cilkplus with flag_cilkplus.
      +       (c_parser_direct_declarator_inner): Likewise.
      +       (c_parser_attribute_any_word): Likewise.
      +       (c_parser_attributes): Likewise.
      +       (c_parser_compound_statement): Likewise.
      +       (c_parser_statement_after_labels): Likewise.
      +       (c_parser_if_statement): Likewise.
      +       (c_parser_switch_statement): Likewise.
      +       (c_parser_do_statement): Likewise.
      +       (c_parser_for_statement): Likewise.
      +       (c_parser_unary_expression): Likewise.
      +       (c_parser_postfix_expression): Likewise.
      +       (c_parser_postfix_expression_after_primary): Likewise.
      +       (c_parser_postfix_expression_after_primary): Likewise.
      +       (c_parser_omp_clause_name): Likewise.
      +       (c_finish_omp_declare_simd): Likewise.
      +       (c_parser_cilk_verify_simd): Likewise.
      +       * c-typeck.c (build_array_ref): Likewise.
      +       (build_function_call_vec): Likewise.
      +       (convert_arguments): Likewise.
      +       (build_compound_expr): Likewise.
      +       (c_finish_return): Likewise.
      +       (c_finish_if_stmt): Likewise.
      +       (c_finish_loop): Likewise.
      +       (build_binary_op): Likewise.
      +
      
      gcc/lto/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * lto-lang.c (lto_init): Replaced flag_enable_cilkplus with
      +       flag_cilkplus.
      +
      
      From-SVN: r207064
      Balaji V. Iyer committed
    • compiler: Use backend interface for unary expressions. · 8a35e18d
      	* go-gcc.cc (Gcc_backend::unary_expression): New function.
      
      From-SVN: r207063
      Chris Manghane committed
    • rs6000.c (rs6000_expand_vec_perm_const_1): Remove correction for little endian... · 8adcc78b
      2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
      	correction for little endian...
      	* config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
      	here.
      
      From-SVN: r207062
      Bill Schmidt committed
    • re PR tree-optimization/59919 (ICE in process_assert_insertions_for, at tree-vrp.c:6096) · 3d750496
      	PR tree-optimization/59919
      	* tree-vrp.c (find_assert_locations_1): Do not register asserts
      	for non-returning calls.
      
      	PR tree-optimization/59919
      	* gcc.c-torture/compile/pr59919.c: New test.
      
      From-SVN: r207061
      Jeff Law committed
    • re PR libstdc++/59531 (string_view overrun in copy operation) · bb393514
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      
      	PR libstdc++/59531
      	* testsuite/experimental/string_view/operations/copy/char/1.cc: New.
      	* testsuite/experimental/string_view/operations/copy/wchar_t/1.cc: New.
      
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      	    Peter A. Bigot <pab@pabigot.com>
      
      	PR libstdc++/59531
      	* include/experimental/string_view
      	(copy(_CharT*, size_type, size_type) const): Correct throw string.
      	Correct copy start location.
      
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      	    Peter A. Bigot <pab@pabigot.com>
      
      	PR libstdc++/59530
      	* include/experimental/string_view (operator[](size_type) const):
      	Fix one-off index error in debug check.
      	* testsuite/experimental/string_view/element_access/char/1.cc: Don't
      	test basic_string_view at size().
      	* testsuite/experimental/string_view/element_access/wchar_t/1.cc: Ditto.
      
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      	    Peter A. Bigot <pab@pabigot.com>
      
      	PR libstdc++/59529
      	* include/experimental/string_view
      	(basic_string_view(const _CharT*, size_type)): Don't care if len == 0.
      	* testsuite/experimental/string_view/operations/substr/char/1.cc:
      	Comment out catch of out_of_range; No terminating null
      	in basic_string_view.  Check begin == end.
      	* testsuite/experimental/string_view/operations/substr/wchar_t/1.cc:
      	Ditto.
      
      
      Co-Authored-By: Peter A. Bigot <pab@pabigot.com>
      
      From-SVN: r207060
      Ed Smith-Rowland committed
    • re PR libstdc++/59548 (Abort after copying std::unordered_map in debug mode) · f7491277
      	PR libstdc++/59548
      	* include/debug/safe_base.h (_Safe_sequence_base): Define copy
      	constructor to prevent it being implicitly defined as deleted, but
      	do not copy anything.
      	* include/debug/safe_unordered_base.h (_Safe_unordered_container_base):
      	Define copy and move constructors similar to _Safe_sequence_base's.
      	* testsuite/23_containers/unordered_map/59548.cc: New.
      
      From-SVN: r207059
      Jonathan Wakely committed
    • re PR c++/58550 (][c++11] ICE with auto in function return type and lto) · 233aedf4
      	PR c++/58550
      	* decl.c (grokdeclarator): Turn pedwarn about auto return type in
      	c++11 into error.
      
      From-SVN: r207055
      Jason Merrill committed
    • typo · 4bcfd75c
      From-SVN: r207054
      Jason Merrill committed