1. 20 Sep, 2013 12 commits
    • plugin.c (parse_plugin_arg_opt): Accept equal sign inside plugin argument. · 0a811e96
      2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* plugin.c (parse_plugin_arg_opt): Accept equal sign inside 
                plugin argument.
      
      From-SVN: r202783
      Basile Starynkevitch committed
    • gengtype.c (file_rules): Added rule for *.cc files. · 0078f462
      2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
      
             * gengtype.c (file_rules): Added rule for *.cc files.
             (get_output_file_with_visibility): Give fatal message when no
             rules found.
      
      From-SVN: r202782
      Basile Starynkevitch committed
    • re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) · d15ac9d9
      2013-09-20  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR libstdc++/58338
      	* include/bits/allocator.h (__alloc_swap::_S_do_it,
      	__shrink_to_fit_aux::_S_do_it): Mark as noexcept.
      	* include/bits/basic_string.h (basic_string::_Rep) [_S_empty_rep,
      	_M_is_leaked, _M_is_shared, _M_set_leaked, _M_set_sharable,
      	_M_set_length_and_sharable, _M_dispose]: Likewise.
      	(basic_string::_Alloc_hider::_Alloc_hider): Likewise.
      	(basic_string) [_M_data, _M_rep, _M_ibegin, _M_iend, _M_limit,
      	_M_disjunct, _M_copy, _M_move, _M_assign, _S_copy_chars, _S_compare,
      	_S_empty_rep, shrink_to_fit, operator[] const, front const, back const]:
      	Likewise.
      	[clear]: Link to PR 56166.
      	[swap]: Link to PR 58265.
      	* include/bits/stl_deque.h (_Deque_iterator) [_S_buffer_size,
      	_Deque_iterator, _M_const_cast, operator*, operator->, operator++,
      	operator--, operator+=, operator+, operator-=, operator-, operator[],
      	_M_set_node]: Mark as noexcept.
      	(operator==(const _Deque_iterator&, const _Deque_iterator&),
      	operator!=(const _Deque_iterator&, const _Deque_iterator&),
      	operator<(const _Deque_iterator&, const _Deque_iterator&),
      	operator>(const _Deque_iterator&, const _Deque_iterator&),
      	operator<=(const _Deque_iterator&, const _Deque_iterator&),
      	operator>=(const _Deque_iterator&, const _Deque_iterator&),
      	operator-(const _Deque_iterator&, const _Deque_iterator&),
      	operator+(ptrdiff_t, const _Deque_iterator&)): Likewise.
      	(_Deque_base) [_Deque_base(const allocator_type&)]: Add missing call to
      	_M_initialize_map.
      	[~_Deque_base, _M_deallocate_node, _M_deallocate_map, _M_destroy_nodes]:
      	Mark as noexcept.
      	(_Deque_base::_Deque_impl) [_Deque_impl(const _Tp_alloc_type&),
      	_Deque_impl(_Tp_alloc_type&&)]: Likewise.
      	(deque) [_S_buffer_size, operator=(deque&&), shrink_to_fit, operator[],
      	front, back, pop_front, pop_back, swap]: Likewise.
      	[deque(), deque(const allocator_type&)]: Merge.
      	* include/debug/deque (deque) [operator=(deque&&), shrink_to_fit,
      	operator[], front, back, pop_front, pop_back, swap]: Mark as noexcept.
      	* include/profile/deque (deque) [operator=(deque&&), operator[], front,
      	back, pop_front, pop_back, swap]: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
      	Adjust line number.
      	* 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.
      
      From-SVN: r202781
      Marc Glisse committed
    • [AArch64] Use plus_constant. · d20e48b0
      2013-09-20  Renlin Li  <renlin.li@arm.com>
      
      	* config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
      	(aarch64_expand_epilogue): Likewise.
      	(aarch64_legitimize_reload_address): Likewise.
      
      From-SVN: r202780
      Renlin Li committed
    • re PR middle-end/57748 (ICE when expanding assignment to unaligned zero-sized array) · 59bb1544
      2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR middle-end/57748
              * expr.c (expand_assignment): Remove misalignp code path.
      
      testsuite/
      
              PR middle-end/57748
              * gcc.dg/torture/pr57748-1.c: New test.
              * gcc.dg/torture/pr57748-2.c: New test.
      
      From-SVN: r202778
      Bernd Edlinger committed
    • re PR sanitizer/58413 (ubsan constant folding) · a5430019
      2013-09-20  Marek Polacek  <polacek@redhat.com>
      
      	PR sanitizer/58413
      	* ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
      	TYPE_PRECISION.  Add asserts.
      
      testsuite/
      	* c-c++-common/ubsan/shift-4.c: New test.
      
      From-SVN: r202776
      Marek Polacek committed
    • re PR tree-optimization/58453 (Revision 202431 results in miscompare for CPU2006 434.zeusmp) · 9fed7f3a
      2013-09-20  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58453
      	* tree-loop-distribution.c (distribute_loop): Apply the cost
      	model for -ftree-loop-distribute-patterns, too.
      
      	* gcc.dg/tree-ssa/ldist-23.c: New testcase.
      
      From-SVN: r202775
      Richard Biener committed
    • re PR tree-optimization/58473 (FAIL:… · a820c834
      re PR tree-optimization/58473 (FAIL: ext/random/normal_mv_distribution/cons/default.cc (test for excess errors))
      
      2013-09-20  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/58473
      	* tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
      	make type comparison less strict.
      
      From-SVN: r202774
      Richard Biener committed
    • libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. · 3cbe17f7
      	* libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical
      	ppc host match.  Support little-endian powerpc linux hosts.
      Regenerate configure throughout.
      
      From-SVN: r202773
      Alan Modra committed
    • re PR fortran/58099 ([F03] over-zealous procedure-pointer error checking) · 1f46d137
      2013-09-20  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/58099
      	* expr.c (gfc_check_pointer_assign): Remove second call to
      	'gfc_compare_interfaces' with swapped arguments.
      	* interface.c (gfc_compare_interfaces): Symmetrize the call to
      	'check_result_characteristics' by calling it with swapped arguments.
      
      2013-09-20  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/58099
      	* gfortran.dg/proc_ptr_43.f90: New.
      
      From-SVN: r202766
      Janus Weil committed
    • re PR other/58467 (Documentation of the "used" variable attribute needs additional information) · 87fccdbb
      2013-09-20  Marek Polacek  <polacek@redhat.com>
      
      	PR other/58467
      	* doc/extend.texi: Document that attribute used is meant to be used
      	on variables with static storage duration.
      
      From-SVN: r202764
      Marek Polacek committed
    • Daily bump. · aeca9c2e
      From-SVN: r202763
      GCC Administrator committed
  2. 19 Sep, 2013 10 commits
  3. 18 Sep, 2013 18 commits
    • compiler: Fix name of unexported method of embedded imported type. · 8b674a6f
      Test case is fixedbugs/bug478.go in master testsuite.
      
      From-SVN: r202726
      Ian Lance Taylor committed
    • re PR fortran/57697 ([OOP] Segfault with defined assignment for components… · 57c6def4
      re PR fortran/57697 ([OOP] Segfault with defined assignment for components during intrinsic assignment)
      
      2013-09-18  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/57697
              * gfortran.dg/defined_assignment_11.f90: New.
      
      From-SVN: r202725
      Tobias Burnus committed
    • expr.c (gfc_check_assign_symbol): Free lvalue.ref. · e3816ac9
      2013-09-18  Tobias Burnus  <burnus@net-b.de>
      
              * expr.c (gfc_check_assign_symbol): Free lvalue.ref.
      
      From-SVN: r202722
      Tobias Burnus committed
    • lra-constraints.c (need_for_all_save_p): Use macro HARD_REGNO_CALL_PART_CLOBBERED. · 8a26ad39
      2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* lra-constraints.c (need_for_all_save_p): Use macro
      	HARD_REGNO_CALL_PART_CLOBBERED.
      	* lra-lives.c (check_pseudos_live_through_calls): Use the macro to
      	set up pseudo conflict hard regs.
      
      From-SVN: r202721
      Vladimir Makarov committed
    • re PR target/58452 (GCC 4.8 and trunk do not compile simple powerpc-linuxpaired -O3 case) · 09487185
      2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/58452
      	* config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
      	operands.
      
      From-SVN: r202719
      Michael Meissner committed
    • compiler: Fix type of result of shortcut calculation. · 17836103
      From-SVN: r202717
      Ian Lance Taylor committed
    • re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) · b4efa80e
      2013-09-18  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR libstdc++/58338
      	* include/bits/stl_iterator.h (__normal_iterator) [__normal_iterator,
      	_M_const_cast, operator*, operator->, operator++, operator--,
      	operator[], operator+=, operator+, operator-=, operator-, base]:
      	Mark as noexcept.
      	(operator==(const __normal_iterator&, const __normal_iterator&),
      	operator!=(const __normal_iterator&, const __normal_iterator&),
      	operator<(const __normal_iterator&, const __normal_iterator&),
      	operator>(const __normal_iterator&, const __normal_iterator&),
      	operator<=(const __normal_iterator&, const __normal_iterator&),
      	operator>=(const __normal_iterator&, const __normal_iterator&),
      	operator-(const __normal_iterator&, const __normal_iterator&),
      	operator+(difference_type, const __normal_iterator&)): Likewise.
      	* include/bits/stl_list.h (list) [splice, _M_check_equal_allocators]:
      	Likewise.
      	(list::_M_check_equal_allocators): Abort instead of throwing.
      	* include/debug/array (array) [operator[], front, back]: Mark as
      	noexcept.
      	* include/profile/array (array) [operator[], front, back]: Likewise.
      	* include/std/array (array) [operator[], front, back]: Likewise.
      	* include/debug/list (list::splice): Likewise.
      	* include/profile/list (list::splice): Likewise.
      	* testsuite/23_containers/list/operations/5.cc: Remove file.
      	* testsuite/23_containers/list/operations/5.h: Likewise.
      
      From-SVN: r202716
      Marc Glisse committed
    • Add missed testsuite/g++.dg/pr58438.C · c9b29b25
      From-SVN: r202715
      Vladimir Makarov committed
    • re PR rtl-optimization/58438 (ICE: in check_rtl, at lra.c:2036) · 080cbf9e
      2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/58438
      	* lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
      	* lra-constraints.c (undo_optional_reloads): Keep optional reloads
      	from previous subpasses.
      
      2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/58438
      	* g++.dg/pr58438.C: New test.
      
      From-SVN: r202714
      Vladimir Makarov committed
    • re PR fortran/43366 ([OOP][F08] Intrinsic assign to polymorphic variable) · 83ba23b7
      2013-09-15  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/43366
              * primary.c (gfc_variable_attr): Also handle codimension.
              * resolve.c (resolve_ordinary_assign): Add invalid-diagnostic
              * for
              polymorphic assignment.
      
      2013-09-15  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/43366
              * gfortran.dg/class_39.f03: Update dg-error.
              * gfortran.dg/class_5.f03: Ditto.
              * gfortran.dg/class_53.f90: Ditto.
              * gfortran.dg/realloc_on_assign_20.f90: New.
              * gfortran.dg/realloc_on_assign_21.f90: New.
              * gfortran.dg/realloc_on_assign_22.f90: New.
      
      From-SVN: r202713
      Tobias Burnus committed
    • re PR c++/58457 (ICE when placement new operator is used with using keyword and custom constructor) · 3f3fd87d
      /cp
      2013-09-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58457
      	* class.c (instantiate_type): Loosen a bit the gcc_assert.
      
      /testsuite
      2013-09-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58457
      	* g++.dg/parse/using4.C: New.
      
      From-SVN: r202711
      Paolo Carlini committed
    • regex.h: Add friend classes. · b21abcee
      2013-09-18  Tim Shen  <timshen91@gmail.com>
      
      	* include/bits/regex.h: Add friend classes.
      	(match_results<>::position, regex_iterator<>::operator++):
      	Implement position specification in regex_iterator.
      	(regex_match<>, regex_search<>):
      	Move match_results initializations to these function. Remove `todo`.
      	* include/bits/regex_compiler.tcc:
      	(_Compiler<>::_M_quantifier): Fix greedy/ungreedy of interval matching.
      	* include/bits/regex_constants.h:
      	Fix indentation. Change match_flag_type to enum type.
      	* include/bits/regex_executor.h:
      	Merge identical code to the base class _Executor.
      	Support flags in regex_constants.
      	* include/bits/regex_executor.tcc: Likewise.
      	* include/bits/regex_scanner.h: Add comments.
      	* include/bits/regex_scanner.tcc: Same.
      	* testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc:
      	Add a testcase.
      	* testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: New.
      	* testsuite/28_regex/iterators/regex_iterator/char/
      	string_position_01.cc: Remove `xfail`.
      	* testsuite/28_regex/iterators/regex_iterator/wchar_t/string_02.cc:
      	Remove `xfail` and make the case really work.
      
      From-SVN: r202706
      Tim Shen committed
    • search_n.cc: Fix typo. · 64bc8861
      2013-09-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/performance/25_algorithms/search_n.cc: Fix typo.
      
      From-SVN: r202704
      Paolo Carlini committed
    • pr58419.c (b): Change type to signed char. · 3c86bedb
      [gcc/testsuite]
      2013-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* gcc.c-torture/execute/pr58419.c (b): Change type to signed char.
      
      From-SVN: r202703
      Kyrylo Tkachov committed
    • arm.c (arm_get_frame_offsets): Validate architecture supports LDRD/STRD before… · a0f70fcb
      arm.c (arm_get_frame_offsets): Validate architecture supports LDRD/STRD before accepting the tuning preference.
      
      	* arm.c (arm_get_frame_offsets): Validate architecture supports
      	LDRD/STRD before accepting the tuning preference.
      	(arm_expand_prologue): Likewise.
      	(arm_expand_epilogue): Likewise.
      
      From-SVN: r202702
      Richard Earnshaw committed
    • re PR sanitizer/58443 (ubsan doesn't properly honor fsanitize= flags) · a24d975c
      2013-09-18  Marek Polacek  <polacek@redhat.com>
      
      	PR sanitize/58443
      cp/
      	* typeck.c (cp_build_binary_op): Properly honor -fsanitize options.
      	Remove unnecessary check.
      
      c/
      	* c-typeck.c (build_binary_op): Properly honor -fsanitize options.
      	Remove unnecessary check.
      
      testsuite/
      	* g++.dg/ubsan/div-by-zero-1.C: Use the integer-divide-by-zero option
      	instead of the shift option.
      	* c-c++-common/ubsan/pr58443-1.c: New test.
      	* c-c++-common/ubsan/pr58443-3.c: New test.
      	* c-c++-common/ubsan/pr58443-2.c: New test.
      
      From-SVN: r202701
      Marek Polacek committed
    • re PR tree-optimization/58417 (Incorrect optimization in SCEV const-prop) · 0547c9b6
      2013-09-18  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58417
      	* tree-chrec.c (chrec_fold_plus_1): Assert that we do not
      	have chrecs with symbols defined in the loop as operands.
      	(chrec_fold_multiply): Likewise.
      	* tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
      	parameters before folding binary operations.
      	(struct instantiate_cache_entry_hasher): Remove.
      	(struct instantiate_cache_type): Use a pointer-map.
      	(instantiate_cache_type::instantiate_cache_type): New function.
      	(instantiate_cache_type::get): Likewise.
      	(instantiate_cache_type::set): Likewise.
      	(instantiate_cache_type::~instantiate_cache_type): Adjust.
      	(get_instantiated_value_entry): Likewise.
      	(global_cache): New global.
      	(instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
      	instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
      	instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
      	(instantiate_scev_name): Adjust.
      	(instantiate_scev): Construct global instead of local cache.
      	(resolve_mixers): Likewise.
      
      	* gcc.dg/torture/pr58417.c: New testcase.
      
      From-SVN: r202700
      Richard Biener committed