1. 27 Sep, 2016 11 commits
  2. 26 Sep, 2016 28 commits
    • re PR libstdc++/77727 (Unwrapping std::optional constructor is not working for… · 71ade764
      re PR libstdc++/77727 (Unwrapping std::optional constructor is not working for non-transferable object)
      
          PR libstdc++/77727
          * include/std/optional (optional(const optional<_Up>&)):
          Default-initialize the base and use emplace.
          (optional(optional<_Up>&&)): Likewise.
          * testsuite/20_util/optional/cons/77727.cc: New.
      
      From-SVN: r240511
      Ville Voutilainen committed
    • 2016-09-26 François Dumont <fdumont@gcc.gnu.org> · f2fe9e0a
      	* include/debug/safe_base.h
      	(_Safe_iterator_base::_M_detach_single): Make public.
      
      From-SVN: r240510
      François Dumont committed
    • Fix fallthrough comments for Ada, Solaris/x86, SPARC · fbedd170
      	gcc:
      	* config/i386/i386.c (ix86_print_operand)
      	[HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
      	* config/sparc/sparc.c (check_pic): Add fallthrough comment.
      	(epilogue_renumber): Likewise.
      
      	gcc/ada:
      	* gcc-interface/decl.c: Fix fall through comment formatting.
      	* gcc-interface/misc.c: Likewise.
      	* gcc-interface/trans.c: Likewise.
      	* gcc-interface/utils.c: Likewise.
      	* gcc-interface/utils2.c: Likewise.
      
      From-SVN: r240509
      Rainer Orth committed
    • re PR fortran/77420 (gfortran and equivalence produces internal compiler error) · a184e37f
      2016-09-26  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/77420
      	* trans-common.c:  Handle array elements in equivalence when
      	the lower and upper bounds of array spec are NULL.
       
      2016-09-26  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/77420
      	* gfortran.dg/pr77420_1.f90: New test.
      	* gfortran.dg/pr77420_2.f90: Ditto.
      	* gfortran.dg/pr77420_3.f90: New test. Requires ...
      	* gfortran.dg/pr77420_4.f90: this file.
      
      From-SVN: r240506
      Steven G. Kargl committed
    • re PR tree-optimization/77719 (ICE in pp_string, at pretty-print.c:955) · 8be59d19
      Fix PR77719
      gcc/testsuite/ChangeLog:
      
      2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR middle-end/77719
      	* gfortran.dg/pr77719.f90: New test.
      
      gcc/ChangeLog:
      
      2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR middle-end/77719
      	* tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs to get lhs
      	instead of gimple_assign_lhs as stmt can be builtins too.
      
      From-SVN: r240505
      Kugan Vivekanandarajah committed
    • tree.h (memmodel_from_int, [...]): Move to ... · e73cf9a2
      2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          gcc/
          * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
          is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
          is_mm_seq_cst, is_mm_sync): Move to ...
          * memmodel.h: This.  New file.
          * builtins.c: Include memmodel.h.
          * optabs.c: Likewise.
          * tsan.c: Likewise.
          * config/aarch64/aarch64.c: Likewise.
          * config/alpha/alpha.c: Likewise.
          * config/arm/arm.c: Likewise.
          * config/i386/i386.c: Likewise.
          * config/ia64/ia64.c: Likewise.
          * config/mips/mips.c: Likewise.
          * config/rs6000/rs6000.c: Likewise.
          * config/sparc/sparc.c: Likewise.
          * genconditions.c: Include memmodel.h in generated file.
          * genemit.c: Likewise.
          * genoutput.c: Likewise.
          * genpeep.c: Likewise.
          * genpreds.c: Likewise.
          * genrecog.c: Likewise.
      
          gcc/c-family/
          * c-common.c: Include memmodel.h.
      
      From-SVN: r240504
      Thomas Preud'homme committed
    • builtin-sprintf-warn-1.c: Adjust regex to accept singular form of byte when quantity is unknown. · 991075a4
      2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
      gcc/testsuite/
          * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Adjust regex to accept
          singular form of byte when quantity is unknown.
      
      From-SVN: r240503
      Thomas Preud'homme committed
    • read-rtl.c: split out read_rtx_operand from read_rtx_code · f22735ae
      gcc/ChangeLog:
      	* read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
      	"c" instead when parsing characters.  Move operand parsing into...
      	(read_rtx_operand): ...this new function, renaming "i" to "idx",
      	and tightening the scope of various locals.
      
      From-SVN: r240502
      David Malcolm committed
    • configure.ac: Disable "sim" directory for arc*-*-*. · 2fd88f4f
      2016-09-26  Anton Kolesov  <Anton.Kolesov@synopsys.com>
      
      	* configure.ac: Disable "sim" directory for arc*-*-*.
      	* conifgure: Regenerated.
      
      From-SVN: r240501
      Anton Kolesov committed
    • cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo. · cfff6cdd
      2016-09-26  LH Mouse  <lh_mouse@126.com>
      
      	* config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
      
      From-SVN: r240500
      Liu Hao committed
    • c-lex.c (c_common_has_attribute): Handle attribute fallthrough. · c6147dc4
      	* c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
      
      	* system.h: Use __has_attribute to check whether the fallthrough
      	attribute is supported.
      
      	* g++.dg/cpp1z/feat-cxx1z.C: Test attribute fallthrough.
      
      From-SVN: r240499
      Marek Polacek committed
    • ipa-inline-analysis.c (find_foldable_builtin_expect): Use gimple_call_internal_p. · 8e4284d0
      	* ipa-inline-analysis.c (find_foldable_builtin_expect): Use
      	gimple_call_internal_p.
      	* ipa-split.c (find_return_bb): Likewise.
      	(execute_split_functions): Likewise.
      	* omp-low.c (dump_oacc_loop_part): Likewise.
      	(oacc_loop_xform_head_tail): Likewise.
      	* predict.c (predict_loops): Likewise.
      	* sanopt.c (pass_sanopt::execute): Likewise.
      	* tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
      	* tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
      	* tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
      	(expand_ifn_va_arg_1): Use gimple_call_internal_p.
      	(expand_ifn_va_arg): Likewise.
      	* tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
      	(optimize_mask_stores): Likewise.
      	* tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
      	(vect_transform_stmt): Likewise.
      	* tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
      	* tsan.c (instrument_memory_accesses): Likewise.
      
      From-SVN: r240498
      Marek Polacek committed
    • Fix typo in date. · 6e139966
      From-SVN: r240497
      David Edelsohn committed
    • [regrename][sel-sched] Fix bogus use of HARD_FRAME_POINTER_REGNUM (was: Fix arm bootstrap) · a943bb7f
      	* regrename.c (rename_chains): Check
      	HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
      	HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
      	* sel-sched.c (mark_unavailable_hard_regs): Likewise.
      
      Co-Authored-By: Alexander Monakov <amonakov@ispras.ru>
      
      From-SVN: r240496
      Kyrylo Tkachov committed
    • S/390: Add missing fallthrough comments. · 1d92cba9
      gcc/ChangeLog:
      
      2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
      
      	* config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
      	(s390_sched_score): Likewise.
      
      From-SVN: r240495
      Andreas Krebbel committed
    • Fix documentation of gcov tool · c1c6ca63
      	* doc/gcov.texi: Update program output of gcov tool.
      
      From-SVN: r240494
      Martin Liska committed
    • re PR fortran/48298 ([F03] User-Defined Derived-Type IO (DTIO)) · 9beb81ed
      2016-09-26  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/48298
      	* interface.c (gfc_find_specific_dtio_proc) : Return NULL if
      	the derived type is broken, as indicated by a flavor other than
      	FL_DERIVED.
      
      From-SVN: r240493
      Paul Thomas committed
    • Remove HIST_TYPE_CONST_DELTA counter type (PR gcov-profile/23332) · 32824208
      	PR gcov-profile/23332
      	* profile.c (instrument_values): Do not handle
      	HIST_TYPE_CONST_DELTA.
      	* tree-profile.c (gimple_gen_const_delta_profiler):
      	Remove.
      	* value-prof.c (dump_histogram_value): Do not handle
      	HIST_TYPE_CONST_DELTA.
      	(stream_in_histogram_value): Likewise.
      	(gimple_find_values_to_profile): Likewise.
      	* value-prof.h (enum hist_type): Likewise.
      
      From-SVN: r240492
      Martin Liska committed
    • Fix handling of -fsanitize-recover* options. · 5cc6c41c
      	* common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
      	from default sanitize recover values.
      	* doc/invoke.texi: Fix documentation related to -fsanitize=leak,
      	-fsanitize=address, -fsanitize=thread and -fsanitize-recover.
      	* flag-types.h: Replace couple of 1 << x to 1UL << x, make it
      	consistent.
      	* opts.c (finish_options): Do a generic loop over options
      	that can be recovered.
      	(parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
      	SANITIZE_RETURN.
      	(common_handle_option): Likewise.
      	* opts.h: Declare can_recover to sanitizer_opts_s.
      	* c-c++-common/ubsan/sanitize-recover-1.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-2.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-3.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-4.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-5.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-6.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-7.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-8.c: New test.
      	* c-c++-common/ubsan/sanitize-recover-9.c: New test.
      
      From-SVN: r240491
      Martin Liska committed
    • target.def (elf_flags_numeric): Change documentation to present tense. · 759a6472
      2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
      
          * target.def(elf_flags_numeric): Change documentation to
          present tense.
          * doc/tm.texi: Regenerate.
      
      From-SVN: r240490
      Andre Vieira committed
    • init.c (expand_default_init): Fix } indentation. · c0cdf62c
      	* init.c (expand_default_init): Fix } indentation.
      	* method.c (process_subob_fn): Simplify control structure to
      	remove gotos.
      	(implicitly_declare_fn): Remove duplicated lambda ctor check.
      
      From-SVN: r240489
      Nathan Sidwell committed
    • Remove redefinition of __cpp_lib_array_constexpr · 1a08d2da
      	* include/bits/range_access.h (__cpp_lib_array_constexpr): Do not
      	redefine macro defined in <bits/stl_iterator.h>.
      
      From-SVN: r240488
      Jonathan Wakely committed
    • Add assertions to extract(const_iterator) functions · 976160b9
      	* include/bits/stl_map.h (map::extract(const_iterator)): Assert that
      	iterator is not past-the-end.
      	* include/bits/stl_multimap.h (multimap::extract(const_iterator)):
      	Likewise.
      	* include/bits/stl_multiset.h (multiset::extract(const_iterator)):
      	Likewise.
      	* include/bits/stl_set.h (set::extract(const_iterator)): Likewise.
      	* include/bits/unordered_map.h (unordered_map::extract(const_iterator))
      	(unordered_multimap::extract(const_iterator)): Likewise.
      	* include/bits/unordered_set.h (unordered_set::extract(const_iterator))
      	(unordered_multiset::extract(const_iterator)): Likewise.
      
      From-SVN: r240487
      Jonathan Wakely committed
    • re PR libstdc++/77717… · a38814c0
      re PR libstdc++/77717 (testsuite/21_strings/basic_string_view/operations/compare/char/1.cc makes undefined memcmp call)
      
      	PR libstdc++/77717
      	* testsuite/21_strings/basic_string_view/operations/compare/char/1.cc:
      	Fix an out-of-bounds access.
      
      From-SVN: r240486
      Ville Voutilainen committed
    • Implement -Wimplicit-fallthrough. · 81fea426
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r240485
      Marek Polacek committed
    • dwarf2out.c (stripattributes): Remove unused function. · 392fa55c
      2016-09-26  Richard Biener  <rguenther@suse.de>
      
      	* dwarf2out.c (stripattributes): Remove unused function.
      	(DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
      	Push dwarf_split_debug_info handling into init_sections_and_labels.
      	(DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
      	(DEBUG_MACRO_SECTION_FLAGS): Remove.
      	(debug_macinfo_section_name): New global.
      	(output_macinfo): Use debug_macinfo_section_name.
      	(init_sections_and_labels): Split out section and label generation
      	from dwarf2out_init.  Set debug_macinfo_section_name.
      	(dwarf2out_init): Move text section label generation and emission
      	to ...
      	(dwarf2out_assembly_start): ... here.
      	(dwarf2out_finish): Call init_sections_and_labels before DWARF
      	output starts.
      
      From-SVN: r240484
      Richard Biener committed
    • re PR debug/77692 (gcc.dg/debug/dwarf2/const-2b.c FAILs) · e6358ebd
      2016-09-26  Richard Biener  <rguenther@suse.de>
      
      	PR debug/77692
      	* cgraphunit.c (analyze_functions): Before early removing
      	global vars calls the late_global_decl debug handler mark
      	the variable as readonly.
      
      From-SVN: r240483
      Richard Biener committed
    • Daily bump. · ec0dba2b
      From-SVN: r240482
      GCC Administrator committed
  3. 25 Sep, 2016 1 commit
    • debug.cc: Include debug/vector. · d8bbd665
      2016-09-25  François Dumont  <fdumont@gcc.gnu.org>
      
      	* src/c++11/debug.cc: Include debug/vector. Include cctype. Remove
      	functional.
      	(get_safe_base_mutex): Get mutex based on address lowest non nil bits.
      	* testsuite/23_containers/vector/debug/mutex_association.cc: New.
      
      From-SVN: r240479
      François Dumont committed